Search code examples
debpacking

How to get the DEBIAN/debian folder from a ".deb" package?


I would like to know how is possible to get the DEBIAN/debian folder from a ".deb" package.

I found that decompressing a ".deb" package using decompressing tools such as p7zip or dpkg decompress only the software that is going to be installed, and I was thinking that A software can be all free/open source etc, but how can you be sure that there are no Mallory post/pre installation scripts in the ".deb" package?


Solution

  • You want

    dpkg -e path/to/deb
    

    For more info, see man dpkg-deb.