I want to see the contents of a debian package, especially if the package is properly cleaning up whatever it installs.
I want to also see how it goes about installing the software, what directories it creates, symbolic links etc.
I want to see the contents of a debian package, especially if the package is properly cleaning up whatever it installs.
I want to also see how it goes about installing the software, what directories it creates, symbolic links etc.
Use
to extract the file that
somefile.deb
contains into foldersomefolder
Use
to extract the control data (package scripts, metadata,...) of
somefile.deb
into foldersomefolder
.Some archive manager let you just browser Debian packages like any other archive file.
You can use
dpkg
in a terminal to see which files are in an installed package.You can also use it to find out which package a specific file came from.
To list the content of a .deb-file.
In order to evaluate what pre/post-install actions are taken these files need to be extracted and manually viewed.
See the man-page for
dpkg
for more options.There is
dpkg -c package.deb
, which lists the files installed by the package, anddpkg --info package.deb
, which shows general information including which configuration scripts exist (these are run at various points during installation).In addition, it is rather difficult for a .deb package to not clean up installed files, because these are tracked automatically, except for files created from scripts. Debian has the piuparts service, which tests this automatically for packages in the Debian archive.
Yes it is. A Debian package is in fact only an archived folder. So you should be able to open it with the default Archive Manager (right click -> Open with Archive Manager ). Optionally, you can also extract wherever you want. I hope you will be able to learn a lot from doing so.
Yes, its just a normal AR archive, like tar part in tar.gz files ( Tape ARchive in that case )
Contents of this archive are three files:
For installed packages you can see a list of the directories and files it creates as well as the scripts that are used for installation and removal in
/var/lib/dpkg/info
. All the files are named based on the package. Various extensions indicate the files purpose.These files can also be found in the
.deb
which can be viewed with an archive viewer. I tend to usemc
from the command line.