//View Tip #815
Similar Tips
» Sorting debian packages installed by size

 

Latest tips by RSS
Click here to subscribe
Follow Shell-Fu on Twitter
Click here to follow
Follow Shell-Fu on identi.ca
Click here to follow
To find out what files a package generated during installation.

dpkg -L packagename

We can also check the other way and find out what package a file belongs to:

dpkg -S /path/to/file

For the second command we need to use the full path as 'dpkg -S' just matches the string you supply it, so 'dpkg -S ls' matches any package that has a file with 'ls' anywhere in the filename.


View Comments »



Comments 

Add your comment

Comments are currently disabled
Mikey
In gentoo, the respective procedures are:

for listing the files a package installs:
equery files [package]

for searching for packages owning a file:
equery belongs [file]

The application "equery" itself doesn't come granted, but in a must-install package "app-portage/gentoolkit".
Posted 2009-05-18 11:02:51

Home Latest Browse Top 25 Random Hall Of Fame Contact Submit