A message for Linux.com registered users: We are in the process of making changes to the Linux forums. Starting Monday, 8/13/18 at 6:00 PM PT, you will be unable to access the forums. They will re-launch as soon as possible on Wednesday, 8/15/18 with new features and improved functionality. Thank you for your patience and stay tuned for the new improved forums.

April 24, 2012

RPM Installation in different directory

Forums: 

Hi,
Suppose I need to install rpm file in /opt.
I tried with rpm --prefix=/opt/ unrar.*****.rpm

I get this statement

rpm: --prefix may only be used when installing new packages

...How to go about this?

P.S (By default it is installed in /usr/bin/unrar)

Thanks

Click Here!