Download SRPM Collections

Latest response

Greetings all,

I'm sure there is a FAQ for this somewhere but how does one download a collection of SRPMS for a given platform all at once? For example, I'd like to download all Qt5 SRPMS for RHEL 7 but the Red Hat Package Browser doesn't support this AFAICT.

Thanks.

Responses

As long as the system is subscribed to the source channel in Subscription Manager, you can download SRPMs.

A workflow is described at: How do I download source rpms for my Red Hat subscriptions?

You could automate that to parse the output of yum list available.

A quick test suggests this might do it:

yum list available --disablerepo=* --enablerepo=rhel-7-server-rpms | awk '/qt5/{print $1}' | xargs yumdownloader --source