Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

I want to see the source files for deamons that I have installed on CentOS via yum. Can they be found locally or should I just go to the repository site for them.

I know its trivial but I would like to see the exact source that I am useing.

Thanks in advance.

share|improve this question
up vote 1 down vote accepted

You'll need to get the source rpms <pkg name>-<version>.src.rpm. Yum can't do this natively, but if you install the yum utils and add a couple of repos you can grab them easily.

This site explains the process better than I can off the top of my head :).

Also the quickest and easiest way to get the source out of the RPM is the setup a build environment then you just install the source RPM. the source will be in $BUILD_ROOT/SRC

share|improve this answer
The yumdownloader did the job. thanks – Saifis Feb 24 '10 at 2:14

CentOS uses rpm packages, binary equivalent to RedHat, so you can use standard RH weapons to access the files in the packages:

rpm -ql /var/cache/yum/reponame/packages/filename.rpm

This will query the package (if it is installed) and show you where the files are.

share|improve this answer
The wanted rpms where from rpmforge but /var/cache/yum/rpmforge/pachages where empty. However I was able to find many rpms for the some base rpms. Thank you – Saifis Feb 24 '10 at 2:20

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.