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)
0 comments:
Post a Comment