0

I am trying to set RUNPATH within executables, including shared libraries, which will run on Rocky Linux 9. Using patchelf on Centos 7 works fine, but I am having trouble finding a version to use on Rocky 9.

On Rocky 9, when I perform $ sudo dnf provides patchelf, I get Error: No Matches found.

On Centos 7, I am able to install patchelf on Centos 7 successfully - sudo yum provides patchelf returns patchelf-0.12-1.el7.x86_64.

Alternatively, is there another tool available on Rocky 9 to change RUNPATH in a Linux executable?

My next step is to clone https://github.com/NixOS/patchelf and build on Rocky 9, but I am wondering why patchelf is not available on Rocky 9 in the first place.

Ted Jenney
  • 171
  • 1
  • 9
  • This is about package install (maybe ask Unix & Linux) and/or recommendation for a library. Both are off-topic. You could argue, I guess, that the package you are trying to install is programming related. chrpath? Download the source patchelf and build it yourself? – Allan Wind Sep 16 '22 at 00:33

0 Answers0