# 安装 libarchive

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

## 安装

```sh
sudo av install brew:libarchive
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libarchive
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libarchive
```

  证据: MacPorts ports tree: archivers/libarchive/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libarchive
```

  证据: Alpine Linux edge package indexes: libarchive from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libarchive
```

  证据: Fedora Rawhide package metadata: libarchive from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libarchive
```

  证据: nixpkgs package indexes: pkgs/by-name/li/libarchive/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libarchive
```

  证据: Arch Linux sync databases: libarchive from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install bsdtar
```

  证据: openSUSE Tumbleweed package metadata: bsdtar from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## 软件包事实

- **软件包键:** brew:libarchive
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libarchive>
- **版本:** 3.8.7
- **来源摘要:** Multi-format archive and compression library
- **主页:** <https://www.libarchive.org>
- **上游文档:** <https://www.libarchive.org>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://www.libarchive.org/downloads/libarchive-3.8.7.tar.xz>
- **生成来源:** 2026-05-26T17:25:59+00:00

## 可执行文件

- bsdcat (cli)
- bsdcpio (cli)
- bsdtar (cli)
- bsdunzip (cli)
- bsdcat (别名)
- bsdcpio (别名)
- bsdtar (别名)
- bsdunzip (别名)

## 依赖

- libb2
- lz4
- xz
- zstd

## macOS 提供的库

- bzip2
- expat

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 3.8.7
- 本地数据: ok
- 上游仓库: https://www.libarchive.org
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** green / low
- library-like package without higher-risk signals

## 相关链接

- [xz](https://www.automicvault.com/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [lz4](https://www.automicvault.com/pkg/brew/lz4/) - Runtime dependency declared by Homebrew.
- [libb2](https://www.automicvault.com/pkg/brew/libb2/) - Runtime dependency declared by Homebrew.
- [tesseract](https://www.automicvault.com/pkg/brew/tesseract/) - Popular package that depends on this formula.
- [ghostscript](https://www.automicvault.com/pkg/brew/ghostscript/) - Popular package that depends on this formula.
- [gdal](https://www.automicvault.com/pkg/brew/gdal/) - Popular package that depends on this formula.
- [opencv](https://www.automicvault.com/pkg/brew/opencv/) - Popular package that depends on this formula.
- [mpv](https://www.automicvault.com/pkg/brew/mpv/) - Popular package that depends on this formula.
- [vips](https://www.automicvault.com/pkg/brew/vips/) - Popular package that depends on this formula.
- [ffmpeg@6](https://www.automicvault.com/pkg/brew/ffmpeg-6/) - Popular package that depends on this formula.
- [ffmpeg-full](https://www.automicvault.com/pkg/brew/ffmpeg-full/) - Popular package that depends on this formula.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
