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.

RPM

rpm2cpio mypackage.rpm | cpio -vid

DEB

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

or

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

1 Comments »

  1. Manually unpacking a .deb via 'ar' works but it's slightly more tedious than using dpkg:

    dpkg -x mypackage.deb

    which extracts the .deb a bit more directly.

    But both methods work, of course.

    Comment by Chris Knadle — June 10, 2009 @ 19:25

Atom feed for comments on this post.

Leave a comment

Powered by blahgd