Where the heck is this file from…

Hi all.

Sometimes I find myself looking for a source of a certain file in my installation… Let’s say I have a file /usr/bin/firefox… What package did it came from? This command sorts me out:

rpm -qf /path/to/the/file

Example:

[andrzejl@wishmasbell ~]$ rpm -qf /usr/bin/firefox
firefox-5.0-5pclos2011
[andrzejl@wishmasbell ~]$

I hope someone will find it usefull.

Regards.

Andy

Advertisements