qmetrics.net

libarchive

Portable C library and tools for multi-format archives

libarchive screenshot

libarchive reads and writes streaming archives and compression in many formats. It includes bsdtar, bsdcpio, bsdcat, and bsdunzip command-line programs built on the library.

Overview

libarchive is a portable, efficient C library for reading and writing streaming archives in a wide variety of formats. The same distribution ships command-line tools—bsdtar, bsdcpio, bsdcat, and bsdunzip—that exercise the library for everyday archive tasks.

On read, the library automatically detects archive and compression combinations, including layered cases such as tar.gz. Supported read formats span classic tar and cpio variants, zip and zipx, 7-Zip, ISO9660, ar, mtree, RAR with noted limitations, WARC, XAR, CAB, LHA, and more, plus preprocessors such as gzip, bzip2, xz, zstd, and lz4. Write support covers ustar, pax, cpio, zip, shar, ar, iso9660, 7z, warc, xar, and optional compression filters.

The design is stream-oriented for single-pass processing from files, pipes, sockets, or memory callbacks, which suits large archives or on-the-fly serving. Random access and in-place archive editing are not direct goals; transparent format handling uses one API across formats.

Manual pages document the tools and library APIs. The project reports use on POSIX-like systems including Linux and FreeBSD and support for Windows via Cygwin, MinGW, and Visual Studio. Static linking is structured so unused format or compression backends can stay out of binaries unless enabled.

Key features

  • Read and write many archive formats
  • Automatic format and compression detection
  • Streaming single-pass archive I/O
  • Callback-based read and write APIs
  • bsdtar, bsdcpio, bsdcat, bsdunzip utilities
  • Optional minimal static link footprint
  • zip, 7z, tar, cpio, iso, and rar support
  • Transparent multi-format API

Use cases

  • Backup and packaging pipelines
  • Programmatic archive read/write in C
  • Replacing tar, cpio, or unzip CLI workflows
  • Streaming archives over network or tape
  • Format conversion via bsdtar

Tags

Similar software

Rclone

Command-line sync tool for cloud storage

Rclone copies and syncs files between local disks and many cloud backends. It mirrors familiar Unix-style file operations for remote storage.

★ 61.3k⟳ todayMIT
Backup & RecoveryDesktop/CLI app

DiscordChatExporter

Discord channel message history export tool

Exports Discord direct messages, group chats, and server channels to offline files in several formats.

★ 12.5k⟳ 13 days agoMIT
Backup & RecoveryDesktop/CLI app

Pho

Mobile photo gallery syncing to your own storage

Pho backs up iPhone and Android camera rolls to SMB, WebDAV, NFS, S3 or cloud drives without running a dedicated photo server.

★ 1.2k⟳ 1 month agoGPL-3.0
Backup & RecoveryDesktop/CLI app
Open Source Alternative to:Google Photos

Immich

Self-hosted photo and video library with mobile backup

Immich backs up, organizes, and browses personal photos and videos on hardware you run. Mobile and web clients share albums, search, and face grouping.

★ 120.3k⟳ todayAGPL-3.0
Open Source Alternative to:Apple PhotosGoogle Photos

LocalSend

Cross-platform local network file and message sharing app

LocalSend shares files and messages with nearby devices over your local network without internet. It uses HTTPS and works across desktop and mobile systems.

★ 101.2k⟳ 4 days agoApache-2.0
File Management & SyncDesktop/CLI app

Syncthing

Continuous file synchronization between your computers

Syncthing keeps folders in sync across two or more computers automatically. It prioritizes data safety, security, and ease of use for individual users.

★ 90.9k⟳ 2 days agoMPL-2.0
File Management & SyncDesktop/CLI app