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

Gianluca Cecchi gianluca.cecchi at gmail.com
Fri Aug 16 10:21:48 UTC 2013


On Fri, Aug 16, 2013 at 8:51 AM, Chen, Wei D  wrote:
> 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

Interesting.
I put a comment inside solution 15808 in RHN
https://access.redhat.com/site/solutions/15808

as I'm interested in HA and supplementary source packages...
One thing I noticed is that for a 6.3 system registered not with
classic rhn but certificate based, I'm able to get both supplementary
and HA source packages, after following the note above.

eg

# yumdownloader --source --destdir /tmp system-switch-java
Loaded plugins: dellsysid, product-id
Enabling epel-source repository
Enabling rhel-6-server-cf-tools-1-source-rpms repository
Enabling rhel-6-server-source-rpms repository
Enabling rhel-6-server-rhev-agent-source-rpms repository
Enabling rhel-6-server-supplementary-source-rpms repository
Enabling rhel-6-server-optional-source-rpms repository
Enabling rhel-rs-for-rhel-6-server-source-rpms repository
Enabling rhel-ha-for-rhel-6-server-source-rpms repository
system-switch-java-1.1.5-5.el6.src.rpm
                               | 105 kB     00:00

# rpm -qpl /tmp/system-switch-java-1.1.5-5.el6.src.rpm
disabledUnderline.patch
jre-java.patch
system-switch-java-1.1.5.tar.gz
system-switch-java.spec
tuiWidth.patch
version-fix.patch

or

# yumdownloader --source cman
Loaded plugins: dellsysid, product-id
Enabling epel-source repository
Enabling rhel-6-server-cf-tools-1-source-rpms repository
Enabling rhel-6-server-source-rpms repository
Enabling rhel-6-server-rhev-agent-source-rpms repository
Enabling rhel-6-server-supplementary-source-rpms repository
Enabling rhel-6-server-optional-source-rpms repository
Enabling rhel-rs-for-rhel-6-server-source-rpms repository
Enabling rhel-ha-for-rhel-6-server-source-rpms repository
cluster-3.0.12-41.el6_1.2.src.rpm

Gianluca




More information about the rhelv6-list mailing list