Modify rpath of a binary programJanuary 10, 2025 · One min readInstall patchelf sudo apt install -y patchelf # Ubuntu/Debiansudo 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