Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Where do I download a source RPM from?

share|improve this question
7  
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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.