macOS
brew install libarchivelocal Homebrew formula metadata
sudo port install libarchiveMacPorts ports tree · archivers/libarchive/Portfile · source: api.github.com
brew
Multi-format archive and compression library. Version 3.8.8 via Homebrew; verified 2026-06-24.
install
brew install libarchivelocal Homebrew formula metadata
sudo port install libarchiveMacPorts ports tree · archivers/libarchive/Portfile · source: api.github.com
sudo apk add libarchiveAlpine Linux edge package indexes · libarchive · source: dl-cdn.alpinelinux.org
sudo apt install libarchive-devDebian stable package indexes · libarchive-dev · source: deb.debian.org
sudo dnf install bsdcatFedora Rawhide package metadata · bsdcat · source: dl.fedoraproject.org
nix profile install nixpkgs#libarchivenixpkgs package indexes · pkgs/by-name/li/libarchive/package.nix · source: api.github.com
sudo pacman -S libarchiveArch Linux sync databases · libarchive · source: geo.mirror.pkgbuild.com
sudo zypper install bsdtaropenSUSE Tumbleweed package metadata · bsdtar · source: download.opensuse.org
overview
Multi-format archive and compression library
history
libarchive is a portable C library and command-line tool suite for reading and writing many archive formats. It ships bsdtar, bsdcpio, bsdcat, and bsdunzip, making it both a developer library and a practical Unix toolbox package.
The project began in the FreeBSD orbit and was first released in 2006, according to its own libarchive 3.0 transition notes. Its design emphasized streaming, automatic format detection, and a single API that could handle tar, cpio, zip, ISO images, compression filters, and later many more formats.
libarchive spread widely because packaging systems, installers, build tools, and OS utilities all need to unpack archives without shelling out to a pile of format-specific programs. Its bsdtar and bsdcpio utilities became FreeBSD-associated alternatives to GNU tar and cpio, while the library itself was packaged across Linux, macOS, BSD, and Windows-oriented environments.
Applications link libarchive to read and write archives through one API, while users run bsdtar, bsdcpio, bsdcat, or bsdunzip. The project site emphasizes automatic handling of archive-plus-compression combinations such as tar.gz and support for POSIX-like systems plus Windows.
libarchive is one of those packages that quietly makes package managers work. Its importance is in boring reliability: many archive formats, many platforms, a test suite, and CLI tools that can replace multiple single-format utilities.
security posture
library-like package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
bsdcat | cli | global executable | |
bsdcpio | cli | global executable | |
bsdtar | cli | global executable | |
bsdunzip | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:libarchive |
|---|---|
| Version | 3.8.8 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/libarchive |
| Homepage | https://www.libarchive.org |
| Repository | https://github.com/libarchive/libarchive |
| Upstream docs | https://github.com/libarchive/libarchive/wiki |
| License | BSD-2-Clause |
| Source archive | https://www.libarchive.org/downloads/libarchive-3.8.8.tar.xz |
| Last updated | 2026-06-24T06:11:28Z |
| Pulse | updated |
| Dependencies | libb2, lz4, xz, zstd |
| Uses from macOS | bzip2, expat |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | libarchive |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
libarchive-dev 3.7.4-4+deb13u1
Multi-format archive and compression library (development files)
sudo apt install libarchive-devlibarchive-tools 3.7.4-4+deb13u1
FreeBSD implementations of 'tar' and 'cpio' and other archive tools
sudo apt install libarchive-toolslibarchive13t64 3.7.4-4+deb13u1
Multi-format archive and compression library (shared library)
sudo apt install libarchive13t64libarchive
nix profile install nixpkgs#libarchivelibarchive-dev 3.7.2-2
Multi-format archive and compression library (development files)
sudo apt install libarchive-devlibarchive-tools 3.7.2-2
FreeBSD implementations of 'tar' and 'cpio' and other archive tools
sudo apt install libarchive-toolslibarchive13t64 3.7.2-2
Multi-format archive and compression library (shared library)
sudo apt install libarchive13t64libarchive 3.8.7-r0
library that can create and read several streaming archive formats
sudo apk add libarchivelibarchive-dev 3.8.7-r0
library that can create and read several streaming archive formats (development files)
sudo apk add libarchive-devlibarchive-doc 3.8.7-r0
library that can create and read several streaming archive formats (documentation)
sudo apk add libarchive-doclibarchive-static 3.8.7-r0
library that can create and read several streaming archive formats (static library)
sudo apk add libarchive-staticlibarchive-tools 3.8.7-r0
libarchive tools bsdtar and bsdcpio
sudo apk add libarchive-toolsbsdcat 3.8.7-1.fc45
Expand files to standard output
sudo dnf install bsdcatbsdcpio 3.8.7-1.fc45
Copy files to and from archives
sudo dnf install bsdcpiobsdtar 3.8.7-1.fc45
Manipulate tape archives
sudo dnf install bsdtarbsdunzip 3.8.7-1.fc45
Extract files from a ZIP archive
sudo dnf install bsdunzipsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.