Install RPM package into diffrent directory

FREQUENTLY ASKED QUESTIONS  (Linux commands)
Q: How to install an RPM package into different/custom directory?


The following command install rpm package into custom directory.
[root@server ~#]rpm --prefix=/home/user/new <package name.rpm>


Important: The rpm package must be a relocatable rpm. Use the below command to theck whether the package is relocatable or not.
[root@server ~#]rpm -qpi <package name.rpm>
Relocations: (relocatable)

Was this helpfull ?

0 comments:

Related Posts Plugin for WordPress, Blogger...

 
Design by Free WordPress Themes | Bloggerized by Lasantha - Premium Blogger Themes | Bluehost Coupons