# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, zypper 安装 rpm

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

## 安装

```sh
sudo av install brew:rpm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install rpm
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install rpm
```

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

### Linux

- apk (92%):

```sh
sudo apk add rpm
```

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

- Debian apt (92%):

```sh
sudo apt install rpm
```

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

- dnf (92%):

```sh
sudo dnf install rpm
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#rpm
```

  证据: nixpkgs package indexes: rpm from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- zypper (92%):

```sh
sudo zypper install rpm
```

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

## 软件包事实

- **软件包键:** brew:rpm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/rpm>
- **版本:** 6.0.2
- **来源摘要:** Standard unix software packaging tool
- **主页:** <https://rpm.org/>
- **仓库:** <https://github.com/rpm-software-management/rpm>
- **上游文档:** <https://rpm.org/>
- **许可证:** GPL-2.0-or-later AND LGPL-2.0-or-later
- **源码归档:** <https://github.com/rpm-software-management/rpm/releases/download/rpm-6.0.2-release/rpm-6.0.2.tar.bz2>
- **最后更新:** 2026-07-31T08:47:05+01:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gendiff (cli)
- rpm (cli)
- rpm2archive (cli)
- rpm2cpio (cli)
- rpmbuild (cli)
- rpmdb (cli)
- rpmgraph (cli)
- rpmkeys (cli)
- rpmlua (cli)
- rpmquery (cli)
- rpmsign (cli)
- rpmsort (cli)
- rpmspec (cli)
- rpmverify (cli)
- gendiff (别名)
- rpm (别名)
- rpm2archive (别名)
- rpm2cpio (别名)
- rpmbuild (别名)
- rpmdb (别名)
- rpmgraph (别名)
- rpmkeys (别名)
- rpmlua (别名)
- rpmquery (别名)
- rpmsign (别名)
- rpmsort (别名)
- rpmspec (别名)
- rpmverify (别名)

## 依赖

- gettext
- libarchive
- libmagic
- libomp
- lua
- openssl@3
- pkgconf
- popt
- readline
- sqlite
- xz
- zstd

## 构建依赖

- cmake
- gettext
- python@3.14
- rust
- scdoc

## macOS 提供的库

- bzip2

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 6.0.2
- 管理器更新时间: 2026-07-31
- 本地数据: OK
- 上游仓库: https://github.com/rpm-software-management/rpm
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 rpm 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /usr/lib/rpm/macros, /usr/lib/rpm/macros.d/macros.*, /usr/lib/rpm/platform/%{_target}/macros, /usr/lib/rpm/<vendor>/macros, /etc/rpm/macros.*, /etc/rpm/macros, /etc/rpm/%{_target}/macros, ~/.config/rpm/macros, ~/.rpmmacros
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** rpm
- **Version Scheme:** 1
- **Revision:** 0
- **Head Version:** HEAD
- **Conflicts With:** rpm2cpio
- **Requirements:** macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

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

- Debian apt - librpm-dev - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: librpm-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RPM shared library, development kit | https://rpm.org/
- Debian apt - librpm10 - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: librpm10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RPM shared library | https://rpm.org/
- Debian apt - librpmbuild10 - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: librpmbuild10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RPM build shared library | https://rpm.org/
- Debian apt - librpmio10 - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: librpmio10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RPM IO shared library | https://rpm.org/
- Debian apt - librpmsign10 - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: librpmsign10 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | RPM signing shared library | https://rpm.org/
- Debian apt - python3-rpm - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: python3-rpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Python 3 bindings for RPM | https://rpm.org/
- Debian apt - rpm - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: rpm from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | package manager for RPM | https://rpm.org/
- Debian apt - rpm-common - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: rpm-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | common files for RPM | https://rpm.org/
- Debian apt - rpm-i18n - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: rpm-i18n from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | localization for rpm | https://rpm.org/
- Debian apt - rpm2cpio - 4.20.1+dfsg-3: normalized package name match | Debian stable package indexes: rpm2cpio from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tool to convert RPM package to CPIO archive | https://rpm.org/
- Nix - rpm: normalized package name match | nixpkgs package indexes: rpm from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - librpm-dev - 4.18.2+dfsg-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: librpm-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RPM shared library, development kit | https://rpm.org/
- Ubuntu apt - librpm9t64 - 4.18.2+dfsg-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: librpm9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RPM shared library | https://rpm.org/
- Ubuntu apt - librpmbuild9t64 - 4.18.2+dfsg-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: librpmbuild9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RPM build shared library | https://rpm.org/
- Ubuntu apt - librpmio9t64 - 4.18.2+dfsg-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: librpmio9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RPM IO shared library | https://rpm.org/
- Ubuntu apt - librpmsign9t64 - 4.18.2+dfsg-2.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: librpmsign9t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | RPM signing shared library | https://rpm.org/


## 相关链接

- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Runtime dependency declared by Homebrew.
- [sqlite](https://pkg.so/zh-hans/brew/sqlite/) - Runtime dependency declared by Homebrew.
- [xz](https://pkg.so/zh-hans/brew/xz/) - Runtime dependency declared by Homebrew.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [gettext](https://pkg.so/zh-hans/brew/gettext/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Runtime dependency declared by Homebrew.
- [libarchive](https://pkg.so/zh-hans/brew/libarchive/) - Runtime dependency declared by Homebrew.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Build dependency declared by Homebrew.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [libsolv](https://pkg.so/zh-hans/brew/libsolv/) - Popular package that depends on this formula.
- [osc](https://pkg.so/zh-hans/brew/osc/) - Popular package that depends on this formula.
- [rpmspectool](https://pkg.so/zh-hans/brew/rpmspectool/) - Popular package that depends on this formula.
- [pipx](https://pkg.so/zh-hans/brew/pipx/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [poetry](https://pkg.so/zh-hans/brew/poetry/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, packaging.
- [cask](https://pkg.so/zh-hans/brew/cask/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [pdm](https://pkg.so/zh-hans/brew/pdm/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management, packaging.
- [ocicl](https://pkg.so/zh-hans/brew/ocicl/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [eget](https://pkg.so/zh-hans/brew/eget/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [ocaml-findlib](https://pkg.so/zh-hans/brew/ocaml-findlib/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [micromamba](https://pkg.so/zh-hans/brew/micromamba/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, libarchive, management.
- [rattler-build](https://pkg.so/zh-hans/brew/rattler-build/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, management, openssl.

## Combined YAML source

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


## 来源

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