# Install patchelf with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Modify dynamic ELF executables. Version 0.19.1 via Homebrew; verified 2026-07-07. Also installable with debian: sudo apt install patchelf.

## Install

```sh
sudo av install brew:patchelf
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install patchelf
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install patchelf
```

  Evidence: MacPorts ports tree: devel/patchelf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add patchelf
```

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

- Debian apt (92%):

```sh
sudo apt install patchelf
```

  Evidence: Debian stable package indexes: patchelf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install patchelf
```

  Evidence: Fedora Rawhide package metadata: patchelf 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#patchelf
```

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

- pacman (92%):

```sh
sudo pacman -S patchelf
```

  Evidence: Arch Linux sync databases: patchelf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install patchelf
```

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

## Package facts

- **Package key:** brew:patchelf
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/patchelf>
- **Version:** 0.19.1
- **Source summary:** Modify dynamic ELF executables
- **Homepage:** <https://github.com/NixOS/patchelf>
- **Repository:** <https://github.com/NixOS/patchelf>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/NixOS/patchelf/releases/download/0.19.1/patchelf-0.19.1.tar.bz2>
- **Last updated:** 2026-07-07T02:28:20Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Executables

- patchelf (cli)
- patchelf (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.19.1
- Package-manager updated: 2026-07-07
- Local data: ok
- Upstream repository: https://github.com/NixOS/patchelf
- info: No cached GitHub release or tag data was available.

## 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:** patchelf
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- Debian apt - patchelf - 0.18.0-1.4: normalized package name match | Debian stable package indexes: patchelf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | modify properties of ELF executables | https://nixos.org/patchelf.html
- Nix - patchelf: normalized package name match | nixpkgs package indexes: patchelf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - patchelf - 0.18.0-1.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: patchelf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | modify properties of ELF executables | https://nixos.org/patchelf.html
- apk - patchelf - 0.18.0-r3: normalized package name match | Alpine Linux edge package indexes: patchelf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Small utility to modify the dynamic linker and RPATH of ELF executables | https://nixos.org/patchelf.html
- apk - patchelf-doc - 0.18.0-r3: normalized package name match | Alpine Linux edge package indexes: patchelf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Small utility to modify the dynamic linker and RPATH of ELF executables (documentation) | https://nixos.org/patchelf.html
- apk - patchelf-zsh-completion - 0.18.0-r3: normalized package name match | Alpine Linux edge package indexes: patchelf-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zsh completions for patchelf | https://nixos.org/patchelf.html
- dnf - patchelf - 0.19.1-2.fc45: normalized package name match | Fedora Rawhide package metadata: patchelf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | A utility for patching ELF binaries | http://nixos.org/patchelf.html
- pacman - patchelf - 0.19.1-1: normalized package name match | Arch Linux sync databases: patchelf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Small utility to modify the dynamic linker and RPATH of ELF executables | https://nixos.org/patchelf.html
- zypper - patchelf - 0.19.1-1.1: normalized package name match | openSUSE Tumbleweed package metadata: patchelf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A utility for patching ELF binaries | https://nixos.org/patchelf.html
- MacPorts - patchelf: normalized package name match | MacPorts ports tree: devel/patchelf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [elfutils](https://pkg.so/brew/elfutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf, linux.
- [dwarfutils](https://pkg.so/brew/dwarfutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.
- [m68k-elf-binutils](https://pkg.so/brew/m68k-elf-binutils/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools, elf.
- [objconv](https://pkg.so/brew/objconv/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools.
- [mtoc](https://pkg.so/brew/mtoc/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools.
- [poke](https://pkg.so/brew/poke/) - Shares pkgdb curated category or tags: binary-tools, cli, developer-tools.
- [llvm](https://pkg.so/brew/llvm/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain.
- [llvm@20](https://pkg.so/brew/llvm-20/) - Shares pkgdb curated category or tags: cli, developer-tools, toolchain.
- [elfx86exts](https://pkg.so/brew/elfx86exts/) - Local package facts share a topical domain. Shared terms: binaries, binary, cli, developer, developer-tools.
- [abi-dumper](https://pkg.so/brew/abi-dumper/) - Local package facts share a topical domain. Shared terms: binary, cli, developer, developer-tools, elf.

## Combined YAML source

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


## Sources

- 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
