Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 libarchive

查看 libarchive 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libarchive

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libarchive

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add libarchive

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

Fedora dnf已验证 · 92%
sudo dnf install libarchive

Fedora Rawhide package metadata · libarchive · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#libarchive

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

Arch Linux pacman已验证 · 92%
sudo pacman -S libarchive

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

Debian apt已验证 · 92%
sudo apt install libarchive-dev

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

openSUSE zypper已验证 · 92%
sudo zypper install bsdtar

openSUSE Tumbleweed package metadata · bsdtar · 来源: download.opensuse.org

概览

软件包摘要

Multi-format archive and compression library

命令和别名

  • bsdcat
  • bsdcpio
  • bsdtar
  • bsdunzip

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
bsdcatcli全局可执行文件
bsdcpiocli全局可执行文件
bsdtarcli全局可执行文件
bsdunzipcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本3.8.8
管理器更新时间2026-06-24
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.libarchive.org

安装元数据

软件包元数据

软件包键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
Pulseupdated
依赖libb2, lz4, xz, zstd
macOS 提供的库bzip2, expat
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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