chrpath
« Back to VersTracker
Description:
Tool to edit the rpath in ELF binaries
Type: Formula  |  Latest Version: 0.18@0  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: elf rpath binary-editing build-tools linux development
Install: brew install chrpath
About:
chrpath is a command-line utility that allows users to modify, remove, or query the rpath (runtime library search path) embedded in ELF binaries. This is essential for controlling how dynamic libraries are located at runtime without recompiling the executable. It provides a lightweight alternative to patching binaries manually, ensuring compatibility across different system layouts.
Key Features:
  • Modify or delete RPATH/RUNPATH entries in ELF executables
  • Query existing rpath values from compiled binaries
  • Supports both 32-bit and 64-bit ELF formats
  • Lightweight and scriptable for build automation
Use Cases:
  • Fixing library path issues in compiled binaries without recompilation
  • Preparing binaries for distribution with relocatable dependencies
Alternatives:
  • patchelf – More modern and actively maintained, supports additional ELF modifications
  • objcopy – Part of binutils, offers broader binary manipulation capabilities
License: GPL-2.0-or-later
Bottles available for: arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit