Migrating patch repositories for Red Hat Enterprise Linux
The procedure described below generates an XML file that identifies the contents of the repository by its OS and architecture and provides the means for BMC Server Automation to consolidate all of the RPMs in a single location so that the repository can be used as a source for an offline patch catalog.
Use this procedure only in the following cases:
- The patch repository was initially created using BMC Server Automation Vendor Patch Content.
- You used a patch download utility that was not supplied by BMC Server Automation.
- You want to migrate a patch repository that was used in versions earlier than BMC Server Automation 7.0 to later versions of BMC Server Automation.
In this procedure, you define the location where that data is stored as well as the location where you want to create the payload source location used by BMC Server Automation.
To create a payload source location for Red Hat Enterprise Linux
Enter the following command:
redhat_downloader.bat|redhat_downloader.sh -createRepo -srcLocation "<locationOperSysArch>" -repoLocation "<repositoryPath>"
This command uses the following variables:
Location of the metadata and payload you downloaded from the vendor site, in the following format:
Location of the repository, used by BMC Server Automation. Quotation marks around the path are required.
The following example shows the command on a Linux machine:
./redhat_downloader.sh -createRepo -srcLocation "/opt/storage/patches/redhat/rhel-x86_64-server-5,RHES5-x86_64" -repoLocation /opt/storage/patches/redhat/test
- The source location is /opt/storage/patches/redhat/rhel-x86_64-server-5.
- The os-arch is RHES5-x86_64.
Microsoft Windows examples
The following example shows the command on a Microsoft Windows machine:
redhat_downloader.bat -createRepo -srcLocation "C:\opt\storage\patches\redhat\rhel-x86_64-server-5,RHES5-x86_64" -repoLocation D:\opt\storage\patches\redhat\test
The following example demonstrates the use of the
createRepo command on multiple directories:
redhat_downloader.sh -createRepo -srcLocation "/repo/rhel5-i386,RHES5-x86;/repo/rhel5-x86_64,RHES5-x86_64" -repoLocation "/repo/rhel5-all"
In this example, the /repo/rhel5-all directory will contain RPMs from both the x86 and x86_64 channels and the offline catalog can be pointed at /repo/rhel5.