How to extract deb package

Debian packages are regular ar102 archives. They contains three files:
  • debian-binary: regular text file, contains the version of the deb package format
  • control.tar.gz: compressed file, contains file md5sums and control directory for the deb package
  • data.tar.gz: compressed file, contains all the files which will be installed
To unpack a .deb archive you can use following ar command:
ar x example.deb
If you are using a Debian based distribution or you have dpkg installed, you can also use dpkg to extract/unpack deb package without installing in your system:
dpkg -x package.deb /tmp/out  

If you are using a Debian based distribution or you have dpkg installed, you can also use dpkg to extract/unpack deb package without installing in your system:
dpkg -x package.deb /tmp/out 


You have to provide directory for unpack at the last parameter of the command.
When command finished, you will see the deb package contents in /tmp/out directory.


 

Comments

Popular posts from this blog

How to cut copy and paste files on Mac

How To Install Latest Nodejs and React js on CentOS/RHEL 7/6

How to Scrap Email in Primary Level