Peeking Inside rpm Files

Here are a couple of tips:

To extract the content of an RPM file:

rpm2cpio {rpmfile}.rpm | cpio -idmv

To look inside the RPM file without extracting it and to be able to look at the installation and/or uninstall scripts:

a) use Midnight Commander

mc

b) or simply extract the scripts

rpm -qp --scripts {some}.rpm

or

rpm -qp --scripts {some}.rpm > script.txt
By @Jean Figarella in
Tags :