[BLU] unpacking .rpm file?
David Kramer
david at thekramers.net
Mon Dec 18 20:15:41 EST 2000
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).
More information about the Discuss
mailing list