Skip to main content

One post tagged with "rpath"

View All Tags

Modify rpath of a binary program

· One min read

Install patchelf

sudo apt install -y patchelf # Ubuntu/Debian
sudo yum install -y patchelf # CentOS/Fedora

Modify rpath

patchelf --set-rpath /path/to/libraries /path/to/binary

Check current rpath

patchelf --print-rpath /path/to/binary