Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

Where do I download a source RPM from?

share|improve this question
From your distribution provider? If you want more a specific answer, you'll have to give more information. – Faheem Mitha May 11 '11 at 14:07

You haven't given much information, so the easiest thing to say is:

Run rpm -qi <package name> | grep Source and then Google for that file name.

In general, what you should try is to find a download mirror for your distribution. For example, the Fedora 14 mirror list is at mirrors.fedoraproject.org/publiclist/Fedora/14/i386/.

Then navigate to find the SRPMs folder for the release you have, e.g. something like /fedora/linux/releases/14/Fedora/source/.

Other useful resources:

share|improve this answer

Usually most rpm-based distributions make the SRPMs available on their mirrors in the SRPMS directory. Using that you can manually download the src.rpm package from the HTTP or FTP server. Also, there is another way, using yumdownloader as described here.

Personally, more often I get srpms manually, but, depending on what do you want to do, your mileage may vary.

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.