Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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'm looking to script use of rpm --relocate. How to change the default location packages are installed to - from user/local to $HOME/usr?

Do I need to do it all manually (removing and reinstaling to a new location)?

share|improve this question

If the packages are already installed, yes you have to erase and reinstall using --relocate.

The --relocate operates only during installation (though there is no important reason that the relocated paths could not be changed after an install, just noone has bothered, its quite easy to erase and reinstall).

share|improve this answer

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.