# 使用 Homebrew, apk, apt, dnf, Nix, pacman, zypper 安装 chrpath

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

## 安装

```sh
sudo av install brew:chrpath
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install chrpath
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add chrpath
```

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

- Debian apt (92%):

```sh
sudo apt install chrpath
```

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

- dnf (92%):

```sh
sudo dnf install chrpath
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#chrpath
```

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

- pacman (92%):

```sh
sudo pacman -S chrpath
```

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

- zypper (92%):

```sh
sudo zypper install chrpath
```

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

## 软件包事实

- **软件包键:** brew:chrpath
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/chrpath>
- **版本:** 0.18
- **来源摘要:** Tool to edit the rpath in ELF binaries
- **主页:** <https://tracker.debian.org/pkg/chrpath>
- **仓库:** <https://codeberg.org/pere/chrpath>
- **上游文档:** <https://codeberg.org/pere/chrpath/src/branch/master/README.md>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_0.18.orig.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- chrpath (cli)
- chrpath (别名)

## 构建依赖

- autoconf
- automake

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.18
- 本地数据: OK
- 上游仓库: https://tracker.debian.org/pkg/chrpath
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

chrpath is a small command-line tool for listing, removing, converting, and replacing the RPATH or RUNPATH embedded in ELF binaries.

### 项目历史

The official NEWS file records chrpath 0.1 in March 2001 with support for deleting and modifying rpath information. The README says the tool was based on two small programs found on the GCC mailing list.

The project accumulated portability fixes for Solaris, Irix, 64-bit architectures, Hurd, kFreeBSD, and other ELF edge cases. In 2023, the project moved to Codeberg after Alioth shut down.

### 采用历史

The supplied package facts show broad distribution packaging across apk, Homebrew, Debian, dnf, Nix, pacman, Ubuntu, and zypper. The NEWS file also shows Debian packaging work early in the project history.

### 使用方式

chrpath lists the current rpath or runpath by default, deletes it with -d, converts RPATH to RUNPATH with -c, and replaces an existing value with -r when the replacement is no longer than the current string.

### 为什么软件包爱好者会关心

chrpath is package-manager plumbing: it fixes build and relocation artifacts after compilation without relinking. Packagers care about it because RPATH and RUNPATH determine whether a binary uses bundled, build-directory, or system libraries at runtime.

### 时间线

- 2001: 0.1 first release with rpath deletion and modification.
- 2002: 0.6 added a manual page and Debian package scripts.
- 2011: 0.14 moved the project to Alioth and improved cross-endian ELF handling.
- 2014: 0.16 fixed Coverity-discovered issues.
- 2023: 0.17 moved the project to Codeberg.
- 2024: 0.18 added DT_MIPS_RLD_MAP_REL support and packaging metadata adjustments.

### Related projects

- Related tools include patchelf and elfhack; related concepts include ELF dynamic sections, DT_RPATH, DT_RUNPATH, runtime linkers, and distribution binary patching.

### 来源

- <https://codeberg.org/pere/chrpath/src/branch/master/README>
- <https://codeberg.org/pere/chrpath/src/branch/master/NEWS>
- <https://codeberg.org/pere/chrpath/src/branch/master/chrpath.rst>
- <https://codeberg.org/api/v1/repos/pere/chrpath>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - chrpath - 0.18-1: normalized package name match | Debian stable package indexes: chrpath from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Tool to edit the rpath in ELF binaries | https://codeberg.org/pere/chrpath
- Nix - chrpath: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/chrpath/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - chrpath - 0.16-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: chrpath from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Tool to edit the rpath in ELF binaries | https://alioth.debian.org/projects/chrpath/
- apk - chrpath - 0.18-r0: normalized package name match | Alpine Linux edge package indexes: chrpath from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modify rpath of compiled programs | https://codeberg.org/pere/chrpath
- apk - chrpath-doc - 0.18-r0: normalized package name match | Alpine Linux edge package indexes: chrpath-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Modify rpath of compiled programs (documentation) | https://codeberg.org/pere/chrpath
- dnf - chrpath - 0.16-28.fc44: normalized package name match | Fedora Rawhide package metadata: chrpath from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Modify rpath of compiled programs | https://chrpath.alioth.debian.org/
- pacman - chrpath - 0.18-1: normalized package name match | Arch Linux sync databases: chrpath from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Change or delete the rpath or runpath in ELF files | https://codeberg.org/pere/chrpath
- zypper - chrpath - 0.18-1.3: normalized package name match | openSUSE Tumbleweed package metadata: chrpath from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Modifies the dynamic library load path of compiled programs and libraries | https://codeberg.org/pere/chrpath


## 相关链接

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [dwarfutils](https://www.automicvault.com/zh-hans/pkg/brew/dwarfutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [elfutils](https://www.automicvault.com/zh-hans/pkg/brew/elfutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [elfx86exts](https://www.automicvault.com/zh-hans/pkg/brew/elfx86exts/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [m68k-elf-binutils](https://www.automicvault.com/zh-hans/pkg/brew/m68k-elf-binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [patchelf](https://www.automicvault.com/zh-hans/pkg/brew/patchelf/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [binutils](https://www.automicvault.com/zh-hans/pkg/brew/binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [cargo-binutils](https://www.automicvault.com/zh-hans/pkg/brew/cargo-binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [heksa](https://www.automicvault.com/zh-hans/pkg/brew/heksa/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [hevi](https://www.automicvault.com/zh-hans/pkg/brew/hevi/) - Local package facts share a topical domain. Shared terms: binary, cli, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/chrpath.yml](https://github.com/automic-vault/db/blob/main/combined/chrpath.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
