Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[BLU] unpacking .rpm file?



John Chambers wrote:
> 
> Is there any way to simply unpack a .rpm file into  a  directory,  as
> can  be  done  with tar?  I got some stuff as a foo.rpm file, and I'd
> like to unpack it and make a few changes.   I  don't  want  (or  have
> permissions) to overwrite anything in /usr/src/redhat, but that seems
> to be about all that rpm is willing to do.   Digging  around  in  TFM
> doesn't seem to give any clues ...

I see two options that may help you:

       --relocate <oldpath>=<newpath>
              For relocatable packages, translates the files that
              would be put in <oldpath> to <newpath>.
       --badreloc
              To  be  used  in  conjunction with --relocate, this
              forces the relocation even  if  the  package  isn't
              relocatable.
and

       --root <dir>
              Use  the system rooted at <dir> for all operations.
              Note that this means the database will be  read  or
              modified  under  <dir>  and any pre or post scripts
              are run after a chroot() to <dir>.
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org