Thanks to Raphink

Citation: http://serverfault.com/questions/96964/list-of-files-installed-from-apt-package

For this insite

####################################################

All credit goes to the aforementioned – with some additions by me

####################################################

Note: in the following commands, a command beginning with ‘root#’ means it needs to be run as root.

To find which files were installed by a package, use dpkg -L:

package = the package/programs name

package.deb = the deb file of the package/program

$ dpkg -L package

apt-file can tell you which files will be installed by a package before installing it:

root# apt-get install apt-file
root# apt-file update
$ apt-file list package

Or if you have the package as a .deb file locally already, you can run dpkg on it:

$ dpkg --contents package.deb
or
$ dpkg -c package.deb

To find which package provides a file that is already on your system, use:

$ dpkg -S /path/to/file

To find which package provides a file that is not currently on your system, use apt-file again:

$ apt-file search /path/to/file

Leave a Reply

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