Find out packages contain the file you are looking for
If you want to figure out which installed package a file belongs to, use
% dpkg -S filename
apt-file tool can help to find out which packages contain a file.
$ sudo apt-get install apt-file
$ sudo apt-file update
$ sudo apt-file search filename
To list all installed packages
dpkg --get-selections
To list the files in a package.
dpkg -L packageName