Red Hat Bugzilla – Bug 652783
provide yum repository for accessing rhel source rpms
Last modified: 2016-01-18 11:09:39 EST
Currently, rhn does not appear to export .src.rpms in a yum-accessible channel (bug #652781), which means yum-builddep / yumdownloader --source will fail. Until RHN adds such a channel, please consider adding a /etc/yum.repos.d/rhel-source.repo file, which points to under <ftp://ftp.redhat.com/redhat/linux/enterprise>, analogously how bug #217755 did for debuginfo.
/etc/yum.repos.d/rhel-source.repo added in redhat-release-server-6Server-6.1.0.1.el6
redhat-release-server-6Server-6.1.0.1.el6 contains rhel-source.repo: [rhel-source] name=Red Hat Enterprise Linux $releasever - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release [rhel-source-beta] name=Red Hat Enterprise Linux $releasever Beta - $basearch - Source baseurl=ftp://ftp.redhat.com/pub/redhat/linux/beta/$releasever/en/os/SRPMS/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
What about redhat-release-workstation, etc.?
The repo will be available in all redhat-release-* packages.
Thanks. Please see similar request on bug 652790 for RHEL 5 (was already closed).
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHEA-2011-0540.html
Does the source repository work for anyone? Something seems to be missing for me, both under RHEL 6 and RHEL 5... $ rpm -q redhat-release-workstation redhat-release-workstation-6Workstation-6.1.0.2.el6.x86_64 $ sudo yumdownloader -v --enablerepo=rhel-source --source kernel Loading "rhnplugin" plugin Not loading "blacklist" plugin, as it is disabled Loading "refresh-packagekit" plugin Not loading "whiteout" plugin, as it is disabled Config time: 0.038 Looking for repo options for [rhel-x86_64-workstation-6] Looking for repo options for [rhel-x86_64-workstation-supplementary-6] Looking for repo options for [rhel-x86_64-workstation-fastrack-6] Looking for repo options for [rhn-tools-rhel-x86_64-workstation-6] Looking for repo options for [rhel-x86_64-workstation-optional-6] repo time: 1.667 repo time: 0.002 Setting up Package Sacks rhel-source | 951 B 00:00 ... rhel-source/primary | 672 kB 00:03 ... rhel-source 2618/2618 rhel-x86_64-workstation-6 5458/5458 rhel-x86_64-workstation-fastrack-6 57/57 rhel-x86_64-workstation-optional-6 3092/3092 rhel-x86_64-workstation-supplementary-6 123/123 rhn-tools-rhel-x86_64-workstation-6 41/41 pkgsack time: 59.802 No source RPM found for kernel-2.6.32-71.7.1.el6.x86_64 No source RPM found for kernel-2.6.32-71.24.1.el6.x86_64 No source RPM found for kernel-2.6.32-131.2.1.el6.x86_64 No source RPM found for kernel-2.6.32-71.el6.x86_64 No source RPM found for kernel-2.6.32-71.14.1.el6.x86_64 No source RPM found for kernel-2.6.32-71.18.2.el6.x86_64 No source RPM found for kernel-2.6.32-71.18.1.el6.x86_64 No source RPM found for kernel-2.6.32-131.4.1.el6.x86_64 No source RPM found for kernel-2.6.32-71.29.1.el6.x86_64 No source RPM found for kernel-2.6.32-131.0.15.el6.x86_64 Nothing to download
@Dennis Gregorovic, @Alexander Todorov, @Frank Ch. Eigler: Is this working for you (does the repository allow you to download source RPMs)? If not please change status back from CLOSED.
See bug 710469
Well does not work for me, but I found this http://www.cyberciti.biz/faq/yum-download-source-packages-from-rhn/ Just change the name from rhel-source to rhel-src and started to work.
How do you properly enable this? I don't seem to be able to make yum-builddep work whatever I try. Could someone show an example of how they edited the rhel-source.repo file and/or how they invoke yum-builddep to get the srpm of a package on an rhel6-workstation install?