Josef “Jeff” Sipek

Extracting RPMs and DEBs

Every so often I needed to extract a .deb package manually. Usually I ended up installing Midnight Commander, and used it to copy the contents out. This time around, I did some search, and found a straight forward description how to do it for .debs and .rpms.


rpm2cpio mypackage.rpm | cpio -vid


ar vx mypackage.deb
tar -xzvf data.tar.gz


ar p mypackage.deb data.tar.gz | tar zx

Powered by blahgd