Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Is there a simple yum command or some other that indicates where abouts the files belonging to a particular package have been installed?

share|improve this question

2 Answers 2

up vote 2 down vote accepted
rpm -ql packagename
share|improve this answer
I think that does the reverse of what I want. It looks like you give it a file, and it tells you which package it belongs to. –  humble coffee Oct 23 '09 at 3:29
Good grief, you're right. Too quick off the keyboard. –  womble Oct 23 '09 at 3:50
All fixed now. Sorry 'bout that. –  womble Oct 23 '09 at 3:51
yep, that does it :) I wonder why one might want to use the other way that I found. –  humble coffee Oct 23 '09 at 5:26

Looks like this is another way of doing it too:

$ rpm -q --filesbypkg packagename

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.