Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Search Forums:



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-21-2008
Registered User
 

Join Date: Apr 2008
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
how to install rpm to specific directory

Hi,

For example, I want to install abc.rpm to /abc directory.

How can I do that?

Please help.
Sponsored Links
    #2  
Old 05-21-2008
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
 

Join Date: Jun 2006
Location: Madrid (Spain)
Posts: 531
Thanks: 0
Thanked 1 Time in 1 Post
I'm not used to rpm so, in this cases (I'm a Debian guy ) I use "alien". This tool usually comes with almost all dists, install it and then "man alien".
Regards.
Sponsored Links
    #3  
Old 05-21-2008
Registered User
 

Join Date: Feb 2008
Posts: 61
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by beeloo View Post
I want to install abc.rpm to /abc directory.
You can do that through relocation. List the contents of the RPM: 'rpm -qpl packagename.rpm', then for each base directory (/etc, /usr, \etc, \etc) you use a relocation statement. Say the RPM contains files in /etc and /usr/sbin, then to relocate /usr/sbin to /usr/local/sbin you would use 'rpm -i --relocate /usr/sbin=/usr/local/sbin packagename.rpm'.
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to find a specific files in a many directory selamba_warrior Shell Programming and Scripting 7 05-28-2008 03:41 PM
how to install packages into specific dirs!!! wrapster Solaris 4 03-11-2008 01:10 PM
List all files that contain a specific directory Sat510 Solaris 7 04-17-2007 10:57 AM
delete files in specific directory legato Shell Programming and Scripting 2 03-29-2006 09:46 PM
count file(s) under a specific directory leemjesse Shell Programming and Scripting 6 03-23-2005 10:18 AM



All times are GMT -4. The time now is 03:59 AM.