# 使用 Homebrew, apt, MacPorts, Nix, dnf, pacman, zypper, winget 安装 p7zip

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

## 安装

```sh
sudo av install brew:p7zip
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install p7zip
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install p7zip
```

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

### Linux

- Debian apt (92%):

```sh
sudo apt install p7zip
```

  证据: Debian stable package indexes: p7zip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#p7zip
```

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

- dnf (92%):

```sh
sudo dnf install 7zip-standalone
```

  证据: Fedora Rawhide package metadata: 7zip-standalone from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S 7zip
```

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

- zypper (92%):

```sh
sudo zypper install 7zip
```

  证据: openSUSE Tumbleweed package metadata: 7zip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id 7zip.7zr -e
```

  证据: Windows Package Manager source index: 7zip.7zr from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:p7zip
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/p7zip>
- **版本:** 17.06
- **来源摘要:** 7-Zip (high compression file archiver) implementation
- **主页:** <https://github.com/p7zip-project/p7zip>
- **仓库:** <https://github.com/p7zip-project/p7zip>
- **许可证:** LGPL-2.1-or-later AND GPL-2.0-or-later
- **源码归档:** <https://github.com/p7zip-project/p7zip/archive/refs/tags/v17.06.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- 7z (cli)
- 7za (cli)
- 7zr (cli)
- 7z (别名)
- 7za (别名)
- 7zr (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 17.06
- 本地数据: OK
- 上游仓库: https://github.com/p7zip-project/p7zip
- 检测到的最新版本: v17.06 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** p7zip
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- Debian apt - p7zip - 16.02+transitional.1: normalized package name match | Debian stable package indexes: p7zip from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package | https://7-zip.org/
- Debian apt - p7zip-full - 16.02+transitional.1: normalized package name match | Debian stable package indexes: p7zip-full from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | transitional package | https://7-zip.org/
- Nix - p7zip: normalized package name match | nixpkgs package indexes: pkgs/by-name/p7/p7zip/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - p7zip - 16.02+transitional.1: normalized package name match | Ubuntu 24.04 LTS package indexes: p7zip from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package | https://7-zip.org/
- Ubuntu apt - p7zip-full - 16.02+transitional.1: normalized package name match | Ubuntu 24.04 LTS package indexes: p7zip-full from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | transitional package | https://7-zip.org/
- dnf - 7zip-standalone - 26.02-2.fc45: normalized package name match | Fedora Rawhide package metadata: 7zip-standalone from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Standalone version of 7-Zip console that supports only some formats | https://7-zip.org
- pacman - 7zip - 26.02-1: normalized package name match | Arch Linux sync databases: 7zip from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | File archiver for extremely high compression | https://www.7-zip.org
- zypper - 7zip - 26.02-1.2: normalized package name match | openSUSE Tumbleweed package metadata: 7zip from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line file archiver with high compression ratio | https://www.7-zip.org/
- MacPorts - p7zip: normalized package name match | MacPorts ports tree: archivers/p7zip/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - 7zip.7zr: installed executable or alias match | Windows Package Manager source index: 7zip.7zr from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Archive and compression packages](https://pkg.so/zh-hans/archive-compression-tools/) - Matched archive or compression metadata.
- [winetricks](https://pkg.so/zh-hans/brew/winetricks/) - Popular package that depends on this formula.
- [julia](https://pkg.so/zh-hans/brew/julia/) - Popular package that depends on this formula.
- [datalad](https://pkg.so/zh-hans/brew/datalad/) - Popular package that depends on this formula.
- [dtrx](https://pkg.so/zh-hans/brew/dtrx/) - Popular package that depends on this formula.
- [unp](https://pkg.so/zh-hans/brew/unp/) - Popular package that depends on this formula.
- [sevenzip](https://pkg.so/zh-hans/brew/sevenzip/) - Shares pkgdb curated category or tags: archiving, cli, compression, system.
- [unar](https://pkg.so/zh-hans/brew/unar/) - Shares pkgdb curated category or tags: archive, cli, compression, file-utilities, system.
- [cpio](https://pkg.so/zh-hans/brew/cpio/) - Shares pkgdb curated category or tags: archive, archiving, cli, system.
- [dar](https://pkg.so/zh-hans/brew/dar/) - Shares pkgdb curated category or tags: archiving, cli, compression, system.
- [gnu-tar](https://pkg.so/zh-hans/brew/gnu-tar/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [libzip](https://pkg.so/zh-hans/brew/libzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [squashfs](https://pkg.so/zh-hans/brew/squashfs/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [gzip](https://pkg.so/zh-hans/brew/gzip/) - Shares pkgdb curated category or tags: archive, cli, compression, system.
- [zip-a-folder](https://pkg.so/zh-hans/npm/zip-a-folder/) - Local package facts share a topical domain. Shared terms: archive, archiving, cli, compression, file.
- [bestzip](https://pkg.so/zh-hans/npm/bestzip/) - Local package facts share a topical domain. Shared terms: archiver, cli, compression, file, system.

## Combined YAML source

View the package source record on GitHub. [combined/p7zip.yml](https://github.com/mxcl/pkgdb/blob/main/combined/p7zip.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
