Automic VaultAutomic Vault

brew

Install libarchive with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Multi-format archive and compression library. Version 3.8.8 via Homebrew; verified 2026-06-24.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install libarchive

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install libarchive

MacPorts ports tree · archivers/libarchive/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add libarchive

Alpine Linux edge package indexes · libarchive · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install libarchive-dev

Debian stable package indexes · libarchive-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install bsdcat

Fedora Rawhide package metadata · bsdcat · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#libarchive

nixpkgs package indexes · pkgs/by-name/li/libarchive/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S libarchive

Arch Linux sync databases · libarchive · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install bsdtar

openSUSE Tumbleweed package metadata · bsdtar · source: download.opensuse.org

overview

Package summary

Multi-format archive and compression library

Commands and aliases

  • bsdcat
  • bsdcpio
  • bsdtar
  • bsdunzip

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2006: libarchive was first released.
  • 2011-12: libarchive 3.0 was released after nearly two years of development since 2.8.
  • 2016-04-30: libarchive 3.2.0 added bsdcat, LZ4, WARC, raw writer, and ZIP64-related features.
  • 2018-09-03: libarchive 3.3.3 included Zstandard read and write filters.
  • 2023-07-14: the project recorded a bsdunzip port from FreeBSD in NEWS.

Related projects

  • Related projects include FreeBSD tar and cpio tooling, GNU tar, Info-ZIP, zlib, bzip2, xz, lz4, zstd, archive-consuming package managers, and installers.

security posture

Risk level: green

library-like package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • library-like package without higher-risk signals

Signals

  • metadata:library-like

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 4 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
bsdcatcliglobal executable
bsdcpiocliglobal executable
bsdtarcliglobal executable
bsdunzipcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version3.8.8
manager updated2026-06-24
local dataok
upstreamnot checked
latest detectednot detected

https://www.libarchive.org

install metadata

Package metadata

Package keybrew:libarchive
Version3.8.8
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/libarchive
Homepagehttps://www.libarchive.org
Repositoryhttps://github.com/libarchive/libarchive
Upstream docshttps://github.com/libarchive/libarchive/wiki
LicenseBSD-2-Clause
Source archivehttps://www.libarchive.org/downloads/libarchive-3.8.8.tar.xz
Last updated2026-06-24T06:11:28Z
Pulseupdated
Dependencieslibb2, lz4, xz, zstd
Uses from macOSbzip2, expat
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibarchive
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyyes
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

libarchive-dev 3.7.4-4+deb13u1

Multi-format archive and compression library (development files)

https://www.libarchive.org/

sudo apt install libarchive-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libarchive
  • 10 dependencies
  • normalized package name match
  • Matched by: Libarchive
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libarchive-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libarchive-tools 3.7.4-4+deb13u1

FreeBSD implementations of 'tar' and 'cpio' and other archive tools

https://www.libarchive.org/

sudo apt install libarchive-tools
  • Section: utils
  • Architecture: amd64
  • Source Package: libarchive
  • 2 dependencies
  • normalized package name match
  • Matched by: Libarchive
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libarchive-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

libarchive13t64 3.7.4-4+deb13u1

Multi-format archive and compression library (shared library)

https://www.libarchive.org/

sudo apt install libarchive13t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libarchive
  • 9 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libarchive
Debian stable package indexes · deb.debian.org · Debian stable package indexes: libarchive13t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

libarchive

nix profile install nixpkgs#libarchive
  • normalized package name match
  • Matched by: Libarchive
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/li/libarchive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

libarchive-dev 3.7.2-2

Multi-format archive and compression library (development files)

https://www.libarchive.org/

sudo apt install libarchive-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: libarchive
  • 10 dependencies
  • normalized package name match
  • Matched by: Libarchive
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libarchive-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

libarchive-tools 3.7.2-2

FreeBSD implementations of 'tar' and 'cpio' and other archive tools

https://www.libarchive.org/

sudo apt install libarchive-tools
  • Section: universe/utils
  • Architecture: amd64
  • Source Package: libarchive
  • 2 dependencies
  • normalized package name match
  • Matched by: Libarchive
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libarchive-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

libarchive13t64 3.7.2-2

Multi-format archive and compression library (shared library)

https://www.libarchive.org/

sudo apt install libarchive13t64
  • Section: libs
  • Architecture: amd64
  • Source Package: libarchive
  • 9 dependencies
  • 1 provides
  • 1 optional deps
  • normalized package name match
  • Matched by: Libarchive
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: libarchive13t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
apk95%

libarchive 3.8.7-r0

library that can create and read several streaming archive formats

https://libarchive.org/

sudo apk add libarchive
  • License: BSD-2-Clause AND BSD-3-Clause AND Public-Domain
  • Architecture: x86_64
  • Source Package: libarchive
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libarchive from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libarchive-dev 3.8.7-r0

library that can create and read several streaming archive formats (development files)

https://libarchive.org/

sudo apk add libarchive-dev
  • License: BSD-2-Clause AND BSD-3-Clause AND Public-Domain
  • Architecture: x86_64
  • Source Package: libarchive
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libarchive-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libarchive-doc 3.8.7-r0

library that can create and read several streaming archive formats (documentation)

https://libarchive.org/

sudo apk add libarchive-doc
  • License: BSD-2-Clause AND BSD-3-Clause AND Public-Domain
  • Architecture: x86_64
  • Source Package: libarchive
  • normalized package name match
  • Matched by: Libarchive
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libarchive-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libarchive-static 3.8.7-r0

library that can create and read several streaming archive formats (static library)

https://libarchive.org/

sudo apk add libarchive-static
  • License: BSD-2-Clause AND BSD-3-Clause AND Public-Domain
  • Architecture: x86_64
  • Source Package: libarchive
  • 1 dependencies
  • normalized package name match
  • Matched by: Libarchive
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libarchive-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libarchive-tools 3.8.7-r0

libarchive tools bsdtar and bsdcpio

https://libarchive.org/

sudo apk add libarchive-tools
  • License: BSD-2-Clause AND BSD-3-Clause AND Public-Domain
  • Architecture: x86_64
  • Source Package: libarchive
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libarchive-tools from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

bsdcat 3.8.7-1.fc45

Expand files to standard output

https://www.libarchive.org/

sudo dnf install bsdcat
  • License: BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libarchive
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bsdcat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bsdcpio 3.8.7-1.fc45

Copy files to and from archives

https://www.libarchive.org/

sudo dnf install bsdcpio
  • License: BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libarchive
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bsdcpio from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bsdtar 3.8.7-1.fc45

Manipulate tape archives

https://www.libarchive.org/

sudo dnf install bsdtar
  • License: BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libarchive
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bsdtar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

bsdunzip 3.8.7-1.fc45

Extract files from a ZIP archive

https://www.libarchive.org/

sudo dnf install bsdunzip
  • License: BSD-2-Clause AND FSFULLR AND GPL-2.0-or-later WITH Libtool-exception AND BSD-3-Clause AND FSFUL
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libarchive
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Libarchive
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: bsdunzip from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment