See which rpm package a file belongs to

We make rpm packages for most of our libraries and applications, and that brings a lot of benefits. However, when you have too many packages you might (and probably will) forget which package installs a specific file.

$ rpm -qf filename

For example:

[root@videus ~]# rpm -qf /bin/bash
bash-3.0-31

Then the file /bin/bash is installed by the package bash-3.0-31

allyoubase
1989 Zero Wing‘s broken english 

This is pretty straightforward and easy to remember

Leave a Reply

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