I'm trying to decompile a source package because I want to look at the preist en prerm files. Those files are normally in the debian folder but when I extract the source package I don't find any debian folder. Is there a simple command or other way to get the debian folder?
Thanks in advance
If you want to to it from the source for package foo:
apt-get source foo
which will get the .orig.tar.gz
, the .dsc
with control information and the .diff.gz
with Debian changes (if any) and the debian/
directory added to the source for the build. It will have (pre|post)(inst|rm)
files too.
From the .deb
binary, you can use ar
and tar
as per the other answer.