rpm

My Favorite rpm Command

I frequently find myself wondering "what package does such-n-such a file belong to"?

My favorite rpm command comes to the rescue.
<br />rpm -qf &lt;file&gt;

For example, what package does the 'which' command belong to?

[root@localhost ~]# rpm -qf /usr/bin/which
which-2.16-7

Syndicate content