Unix/Linux Go Back    


UNIX for Dummies Questions & Answers This forum is closed for new posts. Please post beginner questions to learn unix and learn linux in this forum UNIX for Beginners Questions & Answers

how to install rpm to specific directory

UNIX for Dummies Questions & Answers


 
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 05-21-2008
beeloo beeloo is offline
Registered User
 
Join Date: Apr 2008
Last Activity: 26 April 2010, 10:37 AM EDT
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 Unix and Linux 05-21-2008
grial's Unix or Linux Image
grial grial is offline Forum Advisor  
El UNIX es como un toro
 
Join Date: Jun 2006
Last Activity: 1 December 2008, 8:39 AM EST
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 Linux) I use "alien". This tool usually comes with almost all dists, install it and then "man alien".
Regards.
Sponsored Links
    #3  
Old Unix and Linux 05-21-2008
unSpawn unSpawn is offline
Registered User
 
Join Date: Feb 2008
Last Activity: 12 April 2014, 4:10 AM EDT
Posts: 67
Thanks: 0
Thanked 2 Times in 2 Posts
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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Specific directory parsing in a directory tree harpal singh Shell Programming and Scripting 6 03-12-2012 09:24 AM
allow user to use sudo cp on a specific directory and only a specific file cokedude UNIX for Advanced & Expert Users 6 09-13-2011 06:53 PM
How to install a specific OS Patch edgarvm AIX 1 05-24-2011 05:27 AM
language Specific software not install singh.suryanara Solaris 2 09-03-2008 04:03 AM
how to install packages into specific dirs!!! wrapster Solaris 4 03-11-2008 02:10 PM



All times are GMT -4. The time now is 06:50 AM.