pkg.soopen package index

brew / rank 2059

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

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

install

Additional install commands

macOS

Homebrewverified · 100%
brew install patchelf

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install patchelf

MacPorts ports tree · devel/patchelf/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add patchelf

Alpine Linux edge package indexes · patchelf · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install patchelf

Debian stable package indexes · patchelf · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install patchelf

Fedora Rawhide package metadata · patchelf · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#patchelf

nixpkgs package indexes · patchelf · source: raw.githubusercontent.com

Arch Linux pacmanverified · 92%
sudo pacman -S patchelf

Arch Linux sync databases · patchelf · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install patchelf

openSUSE Tumbleweed package metadata · patchelf · source: download.opensuse.org

overview

Package summary

Modify dynamic ELF executables

Commands and aliases

  • patchelf

history

Project history and usage

PatchELF modifies the dynamic linker and runtime search-path metadata of ELF executables and shared libraries.

Project history

Eelco Dolstra authored PatchELF in the context of Nix packaging. The project dates to at least 2004, based on its official copyright notice, and is now maintained in the NixOS organization. It has continued to add ELF-rewriting operations, broader architecture handling, build-system support, tests, and reproducibility-oriented behavior.

Adoption history

PatchELF is packaged across major Linux distribution families and in cross-platform package collections including Homebrew, MacPorts, Nix, and pkgsrc-style ecosystems. Its placement under the NixOS organization reflects its longstanding importance to Nix-style binary relocation and packaging workflows.

How it is used

Packagers use patchelf to inspect or set an ELF object's interpreter and RPATH, replace declared shared-library dependencies, alter SONAME metadata, and perform related post-build binary adjustments. Because these changes affect runtime linking, outputs normally require validation in the target environment.

Why package nerds care

PatchELF is a foundational packaging utility because ELF interpreter and RPATH metadata often encode assumptions about a build environment. Rewriting that metadata allows binary artifacts to be adapted to controlled package-store layouts, relocated installations, containers, and other deployment environments without recompilation.

Timeline

  • 2004: Earliest year in the official project copyright notice.
  • The project subsequently moved into community maintenance under the NixOS organization.

Related projects

  • PatchELF is closely associated with Nix and NixOS. It operates in the same problem space as ELF inspection and editing tools from GNU Binutils, elfutils, and related binary-toolchain projects.

Sources

  • Official ChangeLog: https://github.com/NixOS/patchelf/blob/master/ChangeLog.md
  • Official releases: https://github.com/NixOS/patchelf/releases
  • Official repository and README: https://github.com/NixOS/patchelf

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
patchelfcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-09-19
manager version0.19.1
manager updated2026-09-11
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/NixOS/patchelf

install metadata

Package metadata

Package keybrew:patchelf
Version0.19.1
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/patchelf
Homepagehttps://github.com/NixOS/patchelf
Repositoryhttps://github.com/NixOS/patchelf
LicenseGPL-3.0-or-later
Source archivehttps://github.com/NixOS/patchelf/releases/download/0.19.1/patchelf-0.19.1.tar.bz2
Last updated2026-09-11T18:33:10Z
Pulseupdated
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namepatchelf
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

patchelf 0.18.0-1.4

modify properties of ELF executables

https://nixos.org/patchelf.html

sudo apt install patchelf
  • Section: utils
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Patchelf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: patchelf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

patchelf

nix profile install nixpkgs#patchelf
  • normalized package name match
  • Matched by: Patchelf
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: patchelf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

patchelf 0.18.0-1.1build1

modify properties of ELF executables

https://nixos.org/patchelf.html

sudo apt install patchelf
  • Section: universe/utils
  • Architecture: amd64
  • 3 dependencies
  • normalized package name match
  • Matched by: Patchelf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: patchelf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

patchelf 0.18.0-r3

Small utility to modify the dynamic linker and RPATH of ELF executables

https://nixos.org/patchelf.html

sudo apk add patchelf
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: patchelf
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Patchelf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: patchelf from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

patchelf-doc 0.18.0-r3

Small utility to modify the dynamic linker and RPATH of ELF executables (documentation)

https://nixos.org/patchelf.html

sudo apk add patchelf-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: patchelf
  • normalized package name match
  • Matched by: Patchelf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: patchelf-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

patchelf-zsh-completion 0.18.0-r3

Zsh completions for patchelf

https://nixos.org/patchelf.html

sudo apk add patchelf-zsh-completion
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: patchelf
  • normalized package name match
  • Matched by: Patchelf
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: patchelf-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

patchelf 0.19.1-2.fc45

A utility for patching ELF binaries

http://nixos.org/patchelf.html

sudo dnf install patchelf
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: patchelf
  • 4 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Patchelf
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: patchelf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/652278618dec9c023176a80c435a32a2c8154869fb0eb662c267a54df28d77d9-primary.xml.zst
pacman95%

patchelf 0.19.1-1

Small utility to modify the dynamic linker and RPATH of ELF executables

https://nixos.org/patchelf.html

sudo pacman -S patchelf
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: Patchelf
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: patchelf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

patchelf 0.19.1-1.1

A utility for patching ELF binaries

https://nixos.org/patchelf.html

sudo zypper install patchelf
  • License: GPL-3.0-only
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: patchelf
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Patchelf
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: patchelf from https://download.opensuse.org/tumbleweed/repo/oss/repodata/d310d5a96106e1e8872a385adf98aaa23be9db5d80937a6717314e7e7f37715065c6c748ab7ccee6475d620b46979c0fe64235fc0c46988e17edf659578fcf31-primary.xml.zst
MacPorts95%

patchelf

sudo port install patchelf
  • normalized package name match
  • Matched by: Patchelf
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/patchelf/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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