PDA

View Full Version : Controlling package installation path



rob07mxa
11th August 2008, 07:01 PM
hi,

I am intending to uninstall lvm utility from /usr/sbin and install it in root directory /sbin

I want to install it using yum or rpm to guarantee that lvm will be able to locate all its dependencies that are required to make it works properly.

I checked the yum/rpm man pages and I could not see an explicit option that makes it possible.

IS IT POSSIBLE TO CONTROL OR SPECIFY WHERE YUM/RPM INSTALL A PACKAGE?

I attempt the following without success:


[root@localhost ~]# rpm -qi lvm2
Name : lvm2 .... Source RPM: lvm2-2.02.28-1.fc8.src.rpm ....
...etc

[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2
error: open of lvm2 failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm
error: open of lvm failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2-2.02.28-1.fc8.src.rpm
error: open of lvm2-2.02.28-1.fc8.src.rpm failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2.i386
error: open of lvm2.i386 failed: No such file or directory
[root@localhost ~]#


(OS Fedora 8)

thanks in anticipation.

leigh123linux
11th August 2008, 08:00 PM
hi,

I am intending to uninstall lvm utility from /usr/sbin and install it in root directory /sbin

I want to install it using yum or rpm to guarantee that lvm will be able to locate all its dependencies that are required to make it works properly.

I checked the yum/rpm man pages and I could not see an explicit option that makes it possible.

IS IT POSSIBLE TO CONTROL OR SPECIFY WHERE YUM/RPM INSTALL A PACKAGE?

I attempt the following without success:


[root@localhost ~]# rpm -qi lvm2
Name : lvm2 .... Source RPM: lvm2-2.02.28-1.fc8.src.rpm ....
...etc

[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2
error: open of lvm2 failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm
error: open of lvm failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2-2.02.28-1.fc8.src.rpm
error: open of lvm2-2.02.28-1.fc8.src.rpm failed: No such file or directory
[root@localhost ~]# rpm -i --relocate /usr/sbin=/sbin lvm2.i386
error: open of lvm2.i386 failed: No such file or directory
[root@localhost ~]#


(OS Fedora 8)

thanks in anticipation.


Why ?



IS IT POSSIBLE TO CONTROL OR SPECIFY WHERE YUM/RPM INSTALL A PACKAGE?

No it isn't !