LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-11-2008, 12:19 PM   #1
rob07mxa
LQ Newbie
 
Registered: Nov 2007
Posts: 19

Rep: Reputation: 0
Controlling package installation path


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:

Code:
[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 ~]#
thanks in anticipation.

(OS Fedora 8)
 
Old 08-11-2008, 01:18 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 270Reputation: 270Reputation: 270
Why do you want to move to /sbin rather than the default /usr/sbin? What is this going to provide for you? You can still control access in either location.

If you insist to move though, you're better off downloading the source RPM and rebuilding after hacking at the spec file in the way it compiles LVM, etc.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
controlling installation and finding path charnel Linux - General 1 06-28-2005 07:21 PM
message "Problem during installation: x package needed for (installed) x package frayed2 Linux - Newbie 1 04-24-2005 07:05 PM
Java can't find package, but PATH set correctly (j2se1.4.0, java.util.regex package) Ethan Programming 5 02-06-2004 09:55 PM
changing package installation path meshmesh Linux - Software 0 01-25-2004 02:37 AM
How to find the complete path of an installed package samik Linux - Newbie 1 10-26-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration