Running the Patch Downloader utility for Red Hat Enterprise Linux

The following procedure describes how to run the Patch Downloader utility and how to extract RPM packages from a file prepared using the ISO format.

Note

When running the offline downloader ensure that you run it with the sh command. If you are not using the sh command to run the offline downloader, ensure that you have executable permissions (755) to run the script.

To run the Patch Downloader utility on Red Hat Enterprise Linux

Enter the following command:

sh redhat_downloader.sh -configFile "<downloaderConfigurationFilePath>" -rhnUser "<rhnUserName>" -rhnPass "<rhnPassword>"


This command uses the following variables:

<downloaderConfigurationFilePath>

Location of the Configuration file used by the Patch Downloader
Quotation marks around the path are required.

<rhnUserName>

User name required to log onto the Red Hat Network website
Quotation marks are required.

Note

This is not applicable from BMC Server Automation 8.9.02.

<rhnPassword>

Password required to log onto the Red Hat Network website
Quotation marks are required.


Note

This is not applicable from BMC Server Automation 8.9.02.

<caCertificateFilePath>
<clientCertificateFilePath>

Location of the subscription certificate file (client-cert.pem) that is downloaded from the Red Hat subscription management service, see the Before you begin section of Creating a patch catalog . Quotation marks around the path are required.

<clientKeyFilePath>

Location of the system ID certificate file (client-key.pem) that is downloaded from the Red Hat subscription management service, see the Before you begin section of Creating a patch catalog. Quotation marks around the path are required.

This command uses the following additional variables

Note

If the downloader fails to connect to the Red Hat Network website, an error message is issued. This may happen, for example, if you provided an invalid user name or password or if your user account is locked out. This is not applicable for BMC Server Automation 8.9.02.

To extract packages from ISO

Enter the following command:

sh redhat_downloader.sh -extractPackagesFromISO -repoLocation "<patchRepositoryFilePath>" -isoLocation "<isoFilePath>" -osArch "<operatingSystemArchitecture>"

Notes

  • You must execute the extractPackagesFromISO command on a Linux computer only. 
  • Because ISO images do not contain errata information, patch catalogs created from ISO images will not contain errata objects.

This command uses the following variables:

<patchRepositoryFilePath>

Location of the patch repository used by the Patch Downloader
Quotation marks around the path are required.

<isoFilePath>

Location of the ISO from which RPMs are extracted
Quotation marks around the path are required.

<operatingSystemArchitecture>

An OS/architecture combination; for example, RHES7-x86_64 or RHES6-x86_64
Quotation marks are required.

For example:

redhat_downloader.sh -extractPackagesFromISO -repoLocation "/redhat"-isoLocation "/tmp/redhatDVD.iso" -osArch "RHES6-x86"

Tip

Related topic

Walkthrough: Setting up and managing an offline patch catalog for Windows

Was this page helpful? Yes No Submitting... Thank you

Comments