PDA

View Full Version : Still can't access source rpms



jbannon
12th June 2006, 08:38 PM
I've asked this question before but got no reply last time. I'm trying to install some of the source rpms using yum or yumex. I have enabled the source repositories in the core, updates & extras repo files but I still cannot find any source rpms. When I do a makecache it certainly builds a cache for them but if I query a package it returns no source results at all. E.g., if I try 'yum search nasm*' I would expect it to list the source rpms but it only lists the binary builds. Does anyone have any idea what I'm doing wrong?

Here is one of my repo files as an example:

[core]
name=Fedora Core $releasever - $basearch
#baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/os/
mirrorlist=http://fedora.redhat.com/download/mirrors/fedora-core-$releasever
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-debuginfo]
name=Fedora Core $releasever - $basearch - Debug
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/$basearch/debug/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY

[core-source]
name=Fedora Core $releasever - Source
baseurl=http://download.fedora.redhat.com/pub/fedora/linux/core/$releasever/source/SRPMS/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora file:///etc/pki/rpm-gpg/RPM-GPG-KEY


What else do I need to specify?

Thanks.

JEO
12th June 2006, 09:05 PM
What happens when you disable the binary rpms (enabled=0)?

jbannon
12th June 2006, 09:21 PM
Tried it just now. Disabled all the binary builds followed by a 'yum clean all' and then by 'yum makecache'. Exactly the same results. It appears to build the cache successfully but when I try a query like 'yum list *src*' which should show me all the src rpms it shows absolutely nothing.

jbannon
12th June 2006, 09:30 PM
If I try manually connecting to http://download.fedora.redhat.com/pub/fedora/linux/core/5/source/SRPMS/ I can see some source rpms but they all seem to be the earlier versions. Maybe that is the problem?

JEO
13th June 2006, 05:09 PM
There are also some SRPMS under core/updates

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/5/SRPMS/

ccrvic
13th June 2006, 05:17 PM
I have enabled the source repositories in the core, updates & extras repo files but I still cannot find any source rpms.

From the Yum FAQ (http://wiki.linux.duke.edu/YumFaq) :



Q. 14: How can I tell yum to download a source package (i.e., a .src.rpm file)?

A. The main yum program doesn't do this -- it's not within the scope of the program's design goals. But, since it's a very useful function, the yumdownloader program from the yum-utils package is available for doing this very thing. ... this will not be added to yum proper.

Vic.

JEO
13th June 2006, 08:57 PM
Thats good info ccrvic, thanks :)

jbannon
13th June 2006, 09:10 PM
Thanks, I'll install yum-utils.