Obtaining information from the Patch Downloader utility for Red Hat Enterprise Linux
RedHat provides a command line utility named rct that can be used to show the download url information needed for the offline downloader configuration file. On the system that is subscribed to the channels you want to download perform the below actions:
Step | Notes |
---|---|
Locate the RedHat client certificate for your subscription | The client certificate will be the /etc/pki/entitlements/xxxxx.pem file on the subscribed system, or will be what is passed to the offline download as an argument at runtime. |
Run the command – rct cat-cert <Client certificate location> For example: rct cat-cert /etc/pki/entitlements/1553596597038093135.pem | You will get output as below. There will be multiple sections for each channel. Content: Type: yum Name: Red Hat Enterprise Linux Resilient Storage (for RHEL 7 Server) (RPMs) Label: rhel-rs-for-rhel-7-server-rpms Vendor: Red Hat URL: /content/dist/rhel/server/7/$releasever/$basearch/resilientstorage/os GPG: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Enabled: True Expires: 86400 Required Tags: rhel-7-server Arches: x86_64 |
Take the URL value and replace replace:
| The URL: /content/dist/rhel/server/7/$releasever/$basearch/resilientstorage/os becomes /content/dist/rhel/server/7/7Server/x86_64/resilientstorage/os For RHEL 7 x86_64.
|
Append the modified Channel URL to the Redhat CDN Site URL (https://cdn.redhat.com) | https://cdn.redhat.com/content/dist/rhel/server/7/7Server/x86_64/resilientstorage/os |
In the offline downloader xml configuration file, fill in the values for channel-label, channel-url, and arch with the information obtained above | For example: <errata-type-filter repo-type="CDN"> <os>RHES7</os> <arch>x86_64</arch> <channel-label>rhel-rs-for-rhel-7-server-rpms</channel-label> <channel-url> https://cdn.redhat.com/content/dist/rhel/server/7/7Server/ x86_64/resilientstorage/os</channel-url> <errata-severity> <critical>true</critical> <important>true</important> <moderate>true</moderate> <low>true</low> </errata-severity> <errata-type> <security>true</security> <bugfix>true</bugfix> <enhancement>true</enhancement> </errata-type> </errata-type-filter> |
If you need to download multiple architectures of the same channel in the same download then alter the channel-label tag to be unique. | <errata-type-filter repo-type="CDN"> <os>RHES7</os> <arch>x86_64</arch> <channel-label>rhel-rs-for-rhel-7-server-rpms</channel-label> <channel-url> https://cdn.redhat.com/content/dist/rhel/server/7/7Server/ x86_64/resilientstorage/os</channel-url> <errata-severity> <critical>true</critical> <important>true</important> <moderate>true</moderate> <low>true</low> </errata-severity> <errata-type> <security>true</security> <bugfix>true</bugfix> <enhancement>true</enhancement> </errata-type> </errata-type-filter> <errata-type-filter repo-type="CDN"> <os>RHES7</os> <arch>s390x</arch> <channel-label>rhel-rs-for-rhel-7-server-rpms-s390x</channel-label> <channel-url> https://cdn.redhat.com/content/dist/rhel/server/7/7Server/ x86_64/resilientstorage/os</channel-url> <errata-severity> <critical>true</critical> <important>true</important> <moderate>true</moderate> <low>true</low> </errata-severity> <errata-type> <security>true</security> <bugfix>true</bugfix> <enhancement>true</enhancement> </errata-type> </errata-type-filter> |
Related topic