# Install chrpath with Homebrew, apk, apt, dnf, Nix, pacman, zypper

Tool to edit the rpath in ELF binaries. Version 0.18 via Homebrew; verified from local package data.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install chrpath
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add chrpath
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:chrpath
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/chrpath>
- **Version:** 0.18
- **Source summary:** Tool to edit the rpath in ELF binaries
- **Homepage:** <https://tracker.debian.org/pkg/chrpath>
- **Repository:** <https://codeberg.org/pere/chrpath>
- **Upstream docs:** <https://codeberg.org/pere/chrpath/src/branch/master/README.md>
- **License:** GPL-2.0-or-later
- **Source archive:** <https://deb.debian.org/debian/pool/main/c/chrpath/chrpath_0.18.orig.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- chrpath (cli)
- chrpath (alias)

## Build dependencies

- autoconf
- automake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.18
- Local data: ok
- Upstream repository: https://tracker.debian.org/pkg/chrpath
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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

## Other Package-Manager Records

- 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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [dwarfutils](https://www.automicvault.com/pkg/brew/dwarfutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [elfutils](https://www.automicvault.com/pkg/brew/elfutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [elfx86exts](https://www.automicvault.com/pkg/brew/elfx86exts/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [m68k-elf-binutils](https://www.automicvault.com/pkg/brew/m68k-elf-binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [patchelf](https://www.automicvault.com/pkg/brew/patchelf/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools, elf.
- [binutils](https://www.automicvault.com/pkg/brew/binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [cargo-binutils](https://www.automicvault.com/pkg/brew/cargo-binutils/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [heksa](https://www.automicvault.com/pkg/brew/heksa/) - Shares av.db curated category or tags: binary-tools, cli, developer-tools.
- [hevi](https://www.automicvault.com/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)


## Sources

- 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
