Extract contents of .deb files

DEB files are ar archives, which contain three files:

  • debian-binary
  • control.tar.gz
  • data.tar.bz2

First we need to extract the ar archive:

$ ar vx package.deb

Then extract the contents of data.tar.bz2:

$ tar xvfp data.tar.bz2
This entry was posted in linux, minipost. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>