Tools/libarchive/libarchive

libarchive

Multi-format archive and compression library

3.6k+9/wkemergingCtrending

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Jun 2026

libarchive is the C library that reads and writes basically every archive format you've heard of: tar, zip, 7-zip, cpio, ISO images, RAR, and more, with all the common compression codecs underneath. If you've used bsdtar on a Mac or BSD system, you've used libarchive, it ships those command-line tools too. It's plumbing, the kind that quietly powers other software.

There's nothing to run or host. You link it into your C or C++ program, or use the bundled bsdtar and bsdunzip from the command line. One useful trait: it streams, so it can handle archives too big to fit in memory, reading and writing on the fly instead of loading the whole thing.

Developers who need to handle archive files inside their own software are the audience, this saves you from shelling out to a dozen format-specific tools or writing format parsers by hand. For everyday compression at the command line, your OS tools are fine. libarchive earns its place when you're building something that has to deal with archives programmatically.

The catch: it's a building block, not a product, so there's nothing here for a non-developer. It's BSD-licensed and rock solid, the kind of dependency you adopt and forget. The only real risk is the usual one with format parsers, archive handling has a long history of security bugs, so keep it updated.

Free vs Self-Hosted vs Paid

fully free

Free tier: Free and open source under BSD-3-Clause. No paid version.

Self-hosted: Not applicable, it's a library and a set of CLI tools. Free.

Paid: None.

Free and open source (BSD-3). A primitive, not a product, no cost ever.

Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
64/100 · B
Adoption17/30
Maintenance25/25
Community7/20
License5/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Organization account (8 public repos)

License: Other

Review license manually.

Commercial use: ✗ Restricted

About

Owner
libarchive (Organization)
Stars
3,566
Forks
975

Explore Further

More tools in the directory