libarchive

Install command:
brew install libarchive

Multi-format archive and compression library

https://www.libarchive.org

License: BSD-2-Clause

Development: Pull requests

Formula JSON API: /api/formula/libarchive.json

Formula code: libarchive.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
golden gate ✅
tahoe ✅
sequoia ✅
Linux ARM64 ✅
x86_64 ✅

Current versions:

stable ✅ 3.8.11

Keg-only because macOS already provides this software.

Depends on:

libb2 0.98.1 Secure hashing function
lz4 1.11.1 Extremely Fast Compression algorithm
xz 5.8.4 General-purpose data compression with high compression ratio
zstd 1.5.7 Zstandard is a real-time compression algorithm

Uses from macOS: bzip2, expat

Binaries: bsdcat, bsdcpio, bsdtar, bsdunzip

GitHub Packages downloads:

Last 30 days1,055,547
Downloads35,423,606
Analytics install events (30 days)59,641
Downloads / install events (30 days)17.7×

Source: GitHub Packages, fetched 2026-11-10T00:48:03Z. Analytics dates: 2026-10-11 to 2026-11-10. Totals exclude downloads from Bintray before the migration to GitHub Packages. Downloads and install attempts measure different things; the difference does not count analytics opt-outs. Definitions and limitations.

Analytics:

30 days90 days365 days
Installs59,635104,551646,707
Installs (--HEAD)6846
Installs on Request3,6865,46333,795
Installs on Request (--HEAD)4635
Build Errors15