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
[andrzejl@wishmasbell ~]$ rpm -qf /usr/bin/firefox
I hope someone will find it usefull.