nixos/patchelf

A small utility to modify the dynamic linker and RPATH of ELF executables

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 4 minutes ago
Added to GitGenius on September 16th, 2026
Created on December 6th, 2011
Open Issues & Pull Requests: 149 (+0)
GitHub issues: Enabled
Number of forks: 538
Total Stargazers: 4,264 (+0)
Total Subscribers: 75 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.3 days
Mean response time: 293.7 days
90th percentile: 571.0 days
Tracked items: 47

Most active contributors

Sign in to see contributor activity.

How this project is maintained

93% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 67% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 43
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,375 days
Stale 30+ days: 40
Stale 90+ days: 34

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (41)
  • enhancement (3)
  • freebsd (2)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

patchelf is a utility for modifying the dynamic linker and RPATH of ELF executables.

The tool solves the problem of needing to change how compiled binaries locate their dependencies at runtime. ELF executables on Unix-like systems contain metadata specifying which dynamic linker to use and where to search for shared libraries. patchelf allows you to rewrite these settings after compilation, without needing to recompile the original source code. This is particularly useful when you have pre-built binaries that were compiled against a different environment or glibc version than your target system, or when you need to redirect library lookups to custom locations.

patchelf is well-suited for packaging systems, containerization workflows, and scenarios where you need to make binaries portable across different Linux distributions or system configurations. It is especially valuable in the Nix ecosystem, where reproducible builds and precise dependency management are central concerns. The tool works at the binary level, making it applicable to any ELF executable regardless of the language it was written in. If you are working with pre-compiled binaries that cannot be easily rebuilt, or if you need fine-grained control over runtime library resolution, patchelf provides a straightforward way to achieve this without source code access.

The project maintains steady development activity with regular commits addressing bug fixes and improvements. The codebase receives ongoing attention to handle edge cases and compatibility issues across different ELF variants and architectures. The maintainers respond to issues and incorporate contributions that expand the tool's reliability in real-world packaging scenarios.