The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



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 !!

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 SUN Solaris 4 03-11-2008 02:10 PM
List all files that contain a specific directory Sat510 SUN 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 11:18 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-21-2008
beeloo beeloo is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 20
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.
  #2 (permalink)  
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
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.
  #3 (permalink)  
Old 05-21-2008
unSpawn unSpawn is offline
Registered User
  
 

Join Date: Feb 2008
Posts: 50
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'.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:48 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0