//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.
We can also check the other way and find out what package a file belongs to:
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.
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.
Comments
Add your comment
Comments are currently disabled


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".