Libarchive Explained
libarchive is a free and open-source library for reading and writing various archive and compression formats. It is written in C and works on most Unix-like systems and Windows.[1]
History
libarchive's development was started in 2003 as part of the FreeBSD project.[2] During the early years it was led by the FreeBSD project, but later it became an independent project.[3] It was first released with FreeBSD 5.3 in November 2004.[4]
libarchive
libarchive automatically detects and reads archive formats. If the archive is compressed, libarchive also detects and handles compression formats before evaluating the archive. libarchive is designed to minimize the copying of data internally for optimal performance.[5]
Supported archive formats:[6]
- 7z - read and write
- ar - read and write
- cab - read only
- cpio - read and write
- ISO9660- read and write
- lha & lzh - read only
- pax - read and write
- rar - read only
- shar - write only
- tar - read and write
- warc (ISO 28500:2009) - read and write
- xar - read and write
- zip - read and write
Utilities
libarchive provides command-line utilities called bsdtar
and bsdcpio
. These are complete re-implementation based on libarchive. These are the default system tar and cpio on FreeBSD, NetBSD, macOS and Windows.
There is also bsdcat
, designed to decompress a file to the standard output like zcat.
Users
libarchive was originally developed for FreeBSD, but is also used in NetBSD and macOS as part of those operating systems.
bsdtar
has been included in Windows since Windows 10 April 2018 Update.[7] In May 2023, Microsoft announced Windows 11 will natively support additional archive formats such as 7z and RAR via libarchive.[8]
Notes and References
- Web site: libarchive . live . https://web.archive.org/web/20230524004252/https://www.libarchive.org/ . 2023-05-24 . 2023-05-25 . www.libarchive.org . en.
- Web site: ReleaseNotes . 2023-05-25 . GitHub . https://web.archive.org/web/20220312005639/https://github.com/libarchive/libarchive/wiki/ReleaseNotes . 2022-03-12 . live . en.
- Web site: ReleaseEngineering . 2023-05-25 . GitHub . https://web.archive.org/web/20220430100141/https://github.com/libarchive/libarchive/wiki/ReleaseEngineering . 2022-04-30 . live . en.
- Web site: LibarchiveUsers . 2023-05-25 . GitHub . https://web.archive.org/web/20221128123136/https://github.com/libarchive/libarchive/wiki/LibarchiveUsers . 2022-11-28 . live . en.
- Web site: ZeroCopy . 2023-05-25 . GitHub . https://web.archive.org/web/20220430121404/https://github.com/libarchive/libarchive/wiki/ZeroCopy . 2022-04-30 . live . en.
- Web site: Libarchive Formats . GitHub . https://web.archive.org/web/20200911161029/https://github.com/libarchive/libarchive/wiki/LibarchiveFormats . September 11, 2020 . January 17, 2020 . live.
- Web site: 2019-03-21 . Tar and Curl Come to Windows! . live . https://web.archive.org/web/20230415164646/https://techcommunity.microsoft.com/t5/containers/tar-and-curl-come-to-windows/ba-p/382409 . 2023-04-15 . 2023-05-25 . Microsoft Community Hub . en.
- Web site: Panay . Panos . Panos Panay (Microsoft) . 2023-05-23 . Bringing the power of AI to Windows 11 - unlocking a new era of productivity for customers and developers with Windows Copilot and Dev Home . live . https://web.archive.org/web/20230525120145/https://blogs.windows.com/windowsdeveloper/2023/05/23/bringing-the-power-of-ai-to-windows-11-unlocking-a-new-era-of-productivity-for-customers-and-developers-with-windows-copilot-and-dev-home/ . 2023-05-25 . 2023-05-25 . Windows Developer Blog . en.