|
Search Forums:
|
|||||||
| Forums | Register | Forum Rules | Linux and Unix Links | Man Pages | Albums | FAQ | Users | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||
|
||||
|
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
|
|||
|
|||
|
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 |
| 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 |
|
|