macOS
brew install libarchivelocal Homebrew formula metadata
sudo port install libarchiveMacPorts ports tree · archivers/libarchive/Portfile · 来源: api.github.com
安装
brew install libarchivelocal Homebrew formula metadata
sudo port install libarchiveMacPorts ports tree · archivers/libarchive/Portfile · 来源: api.github.com
sudo apk add libarchiveAlpine Linux edge package indexes · libarchive · 来源: dl-cdn.alpinelinux.org
sudo dnf install libarchiveFedora Rawhide package metadata · libarchive · 来源: dl.fedoraproject.org
nix profile install nixpkgs#libarchivenixpkgs package indexes · pkgs/by-name/li/libarchive/package.nix · 来源: api.github.com
sudo pacman -S libarchiveArch Linux sync databases · libarchive · 来源: geo.mirror.pkgbuild.com
sudo apt install libarchive-devDebian stable package indexes · libarchive-dev · 来源: deb.debian.org
sudo zypper install bsdtaropenSUSE Tumbleweed package metadata · bsdtar · 来源: download.opensuse.org
概览
Multi-format archive and compression library
历史
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.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
bsdcat | cli | 全局可执行文件 | |
bsdcpio | cli | 全局可执行文件 | |
bsdtar | cli | 全局可执行文件 | |
bsdunzip | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:libarchive |
|---|---|
| 版本 | 3.8.8 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/libarchive |
| 主页 | https://www.libarchive.org |
| 仓库 | https://github.com/libarchive/libarchive |
| 上游文档 | https://github.com/libarchive/libarchive/wiki |
| 许可证 | BSD-2-Clause |
| 源码归档 | https://www.libarchive.org/downloads/libarchive-3.8.8.tar.xz |
| 最后更新 | 2026-06-24T06:11:28Z |
| Pulse | updated |
| 依赖 | libb2, lz4, xz, zstd |
| macOS 提供的库 | bzip2, expat |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 bsdunzip来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.