Pages

Thursday, March 29, 2012

Install rpm to user defined Directory


Hi All,
As all we know that by default in linux rpm packages will get installed to / partition. So in some cases if don't we enough space on / and we need to install that rpm to some other location. We can achieve same by using --relocate option during installation as :

#rpm -ivh --relocate = packagename.rpm

To get information about default location use below command:

#rpm -qpl packagename.rpm

Enjoy!!

Kuldeep Sharma