Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 0 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

Your Answer

 
discard

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.