[rhelv6-list] how to get source packages from RHN channels

Chen, Wei D wei.d.chen at intel.com
Fri Aug 16 06:51:26 UTC 2013


Hi, 

I need get bunch of source rpm packages in RHN additional channels instead of RHEL base channel, so I try to use 'yumdownloader'
command to get the SRPMS, but cannot even download one SRPMS from these additional channels.

Take "apache-mime4j" for example, I just got follow output:
[root at epel etc]# yumdownloader apache-mime4j --source
Loaded plugins: product-id, refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Enabling epel-source repository
No source RPM found for apache-mime4j-0.6-7.redhat_2.ep6.el6.5.noarch
No source RPM found for apache-mime4j-0.6-4_redhat_1.ep6.el6.1.noarch
No source RPM found for apache-mime4j-0.6-5.redhat_1.ep6.el6.noarch
Nothing to download

actually, I can download RPM successfully via 'yumdownloader' command
[root at epel etc]# yumdownloader apache-mime4j
Loaded plugins: product-id, refresh-packagekit, rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
apache-mime4j-0.6-7.redhat_2.ep6.el6.5.noarch.rpm                                                    | 600 kB     00:00

apache-mime4j-0.6-7.redhat_2.ep6.el6.5.noarch can be found in the channel of "Red Hat JBoss EAP (v 6) for 6Server x86_64", my source
rhel-source.repo configured as follow:
[root at epel yum.repos.d]# cat 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=1
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=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta,file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release



Whether it's feasible to get the source SRPMS from these additional channels? How to? 

Best Regards,
Dave Chen


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6648 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20130816/a868c488/attachment.p7s>


More information about the rhelv6-list mailing list