Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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. – nedned 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. – nedned 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.