Dissecting RPM packages

July 2007


RPMs can be unpacked in the current directory using the command: rpm2cpio package.rpm|cpio -idmv --no-absolute-filenames

[Note]Note

With some rpm packages, this fails, due to a new RPM format. Until cpio automatically detects this, there is a workaround (see the Debian bugtracker): rpm2cpio package.rpm | lzma -d | cpio -idmv

If you also want the pre- and post-install scripts and the like: rpm -qp --scripts package.rpm > TheScripts