[CentOS] Deconstruct an rpm

Tue Aug 8 10:22:15 UTC 2006
Ralph Angenendt <ra+centos at br-online.de>

Tom Brown wrote:
> Hi
> 
> Is it possible to take an rpm apart to see what it will do to a system 
> and see what files are inside the package?

"man rpm".

"rpm -qpl file.rpm" shows a list of files.

"rpm -qp --scripts file.rpm" shows which scripts are run after or before
installation, deinstallation, or upgrade.

"rpm2cpio file.rpm | cpio -i --make-directories" will unpack the rpm to
the directory you are momentarily in.

And - as already said - "man rpm".

Regards,

Ralph
-- 
Ralph Angenendt......ra at br-online.de | .."Text processing has made it possible
Bayerischer Rundfunk...80300 München | ....to right-justify any idea, even one
Programmbereich.Bayern 3, Jugend und | .which cannot be justified on any other
Multimedia.........Tl:089.5900.16023 | ..........grounds." -- J. Finnegan, USC
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20060808/82647737/attachment-0005.sig>