RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 652783 - provide yum repository for accessing rhel source rpms
Summary: provide yum repository for accessing rhel source rpms
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: redhat-release-server
Version: 6.0
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: ---
Assignee: Andrew Thomas
QA Contact: Release Test Team
URL:
Whiteboard:
Depends On:
Blocks: 652790 879944
TreeView+ depends on / blocked
 
Reported: 2010-11-12 18:37 UTC by Frank Ch. Eigler
Modified: 2016-01-18 16:09 UTC (History)
6 users (show)

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:
Clone Of:
: 652790 879944 (view as bug list)
Environment:
Last Closed: 2011-05-19 12:55:30 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2011:0540 0 normal SHIPPED_LIVE redhat-release enhancement update for Red Hat Enterprise Linux 6.1 2011-05-18 17:44:50 UTC

Description Frank Ch. Eigler 2010-11-12 18:37:01 UTC
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 18:04:46 UTC
/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 12:44:52 UTC
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 20:44:49 UTC
What about redhat-release-workstation, etc.?

Comment 6 Dennis Gregorovic 2011-02-21 14:56:22 UTC
The repo will be available in all redhat-release-* packages.

Comment 7 David Ward 2011-02-22 05:35:14 UTC
Thanks. Please see similar request on bug 652790 for RHEL 5 (was already closed).

Comment 8 errata-xmlrpc 2011-05-19 12:55:30 UTC
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-22 00:53:41 UTC
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-31 03:00:24 UTC
@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 21:12:23 UTC
See bug 710469

Comment 12 LunaSilverMoon 2011-12-19 04:43:47 UTC
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 16:27:35 UTC
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.