Some day ago, I wrote about RPM extraction, today I need content of DEB packcage, on the contrary of rpm systems debian package manager allow to extract natively by this command:
#dpkg-deb -x somepackage.i386.deb
But my problem is different, I not using Debian sytem, fortunately DEB files are “ar” archives, which contain three files:
– debian-binary
– control.tar.gz
– data.tar.gz
first, extract “ar” archive with this simple command:
# ar vx somepackage.i386.deb
then extract the contents of data.tar.gz using tar:
# tar -xzvf data.tar.gz
Or, if you want, you can made in one step:
# ar p somepackage.i386.deb data.tar.gz | tar zx