Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 652783 - provide yum repository for accessing rhel source rpms
provide yum repository for accessing rhel source rpms
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-release-server (Show other bugs)
6.0
Unspecified Unspecified
low Severity medium
: rc
: ---
Assigned To: Andrew Thomas
Release Test Team
:
Depends On:
Blocks: 652790 879944
  Show dependency treegraph
 
Reported: 2010-11-12 13:37 EST by Frank Ch. Eigler
Modified: 2016-01-18 11:09 EST (History)
6 users (show)

See Also:
Fixed In Version: redhat-release-server-6Server-6.1.0.1.el6 redhat-release-computenode-6ComputeNode-6.1.0.1.el6 redhat-release-client-6Client-6.1.0.1.el6 redhat-release-workstation-6Workstation-6.1.0.1.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 652790 879944 (view as bug list)
Environment:
Last Closed: 2011-05-19 08:55:30 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0540 normal SHIPPED_LIVE redhat-release enhancement update for Red Hat Enterprise Linux 6.1 2011-05-18 13:44:50 EDT

  None (edit)
Description Frank Ch. Eigler 2010-11-12 13:37:01 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.
Comment 2 Dennis Gregorovic 2011-02-01 13:04:46 EST
/etc/yum.repos.d/rhel-source.repo added in redhat-release-server-6Server-6.1.0.1.el6
Comment 4 Alexander Todorov 2011-02-07 07:44:52 EST
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
Comment 5 David Ward 2011-02-19 15:44:49 EST
What about redhat-release-workstation, etc.?
Comment 6 Dennis Gregorovic 2011-02-21 09:56:22 EST
The repo will be available in all redhat-release-* packages.
Comment 7 David Ward 2011-02-22 00:35:14 EST
Thanks. Please see similar request on bug 652790 for RHEL 5 (was already closed).
Comment 8 errata-xmlrpc 2011-05-19 08:55:30 EDT
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
Comment 9 David Ward 2011-06-21 20:53:41 EDT
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
Comment 10 David Ward 2011-07-30 23:00:24 EDT
@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.
Comment 11 Dennis Gregorovic 2011-08-03 17:12:23 EDT
See bug 710469
Comment 12 LunaSilverMoon 2011-12-18 23:43:47 EST
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.
Comment 13 Mark Wielaard 2012-11-25 11:27:35 EST
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?

Note You need to log in before you can comment on or make changes to this bug.