# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:chrpath
- **软件包管理器:** Homebrew
- **版本:** 0.18
- **来源摘要:** Tool to edit the rpath in ELF binaries
- **主页:** <https://tracker.debian.org/pkg/chrpath>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- chrpath (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.18
## 项目历史与用法

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

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

- 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-29.fc45: normalized package name match | Fedora Rawhide package metadata: chrpath from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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.5: normalized package name match | openSUSE Tumbleweed package metadata: chrpath from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Modifies the dynamic library load path of compiled programs and libraries | https://codeberg.org/pere/chrpath


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
