Super User is a question and answer site for computer enthusiasts and power users. 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

CentOS 5.3

I have been installing some packages using

rpm -ivh package

However, I am just wondering what command I can use to find the path of where the packages are installed.

Many thanks,

share|improve this question
up vote 8 down vote accepted

rpm -ql package should give you a list of all files installed for a given package.

share|improve this answer
rpm -qpl package.rpm will list the files the package contains before installing it. – Etan Reisner Jun 27 '13 at 15:11

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.