Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install a package on a RHEL4 box, the package is non-relocatable.

I need it at a custom location because there are some other applications which need to be linked to it.

So I wonder if it is possible that to install the package to the default location, then remove it with the -e -repackage option and during this step make it relocatable.

If this can be done can you please specify what options should I be using?

If this is not possible can you please specify some other way?

share|improve this question
up vote 1 down vote accepted

Relocatable packages are deprecated, as they are of limited utility (and hard to create unless the code itself is really filessytem-position independent). Just installing, moving stuff around and packaging from there is unlikely to work (configuration files paths are hardwired into the executables, location of data files are fixed; and a lot of other things have to change). If the source uses the standard ./configure; make; make install dance, your best bet is to get the source RPM, install that one, hack the SPEC file to configure for an alternative location, and rebuild. Just make sure to check the dependencies of the package, and to give it a different name (e.g., package-localized) so it doesn't collide with the official one. Keep the SPEC file around, so you can recreate it whenever upstream updates the package.

share|improve this answer
Thanks that helped! :) – user2028989 Feb 25 '13 at 13:08
Why do you say that relocatable packages are deprecated? Do you have a URL or source for that? – Fredrik Wendt Aug 14 '15 at 8:57
There is no reason whatsoever to claim that "relocatable packages are deprecated". This is false. – Al Onestone Mar 22 at 16:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.