Finding what package owns a file
One thing you will likely encounter is an unknown file with no manpage.
Fortunately tools such as dpkg-query and rpm exist.
You can use these to find out which package owns a file, for example
dpkg-query -S /bin/bash
bash: /bin/bash
The example above uses dpkg-query to find out which package installed the file /bin/bash, which, surprise surprise, is the bash package.
To do this with rpm you would do
rpm -qf /bin/bash
Happy package hunting,
George Bunyan
Related Stories
POSTED IN: General
0 opinions for Finding what package owns a file
No one has left a comment yet. You know what this means, right? You could be first!
Have an opinion? Leave a comment: