You can mirror Red Hat updates from the NU repository by using YUM subscriptions and updating the RHEL devices. These updates are available from the RES catalogs for 32-bit and 64-bit target platforms. You can list the RES catalogs such as RES3, RES4, and RES5 by using an NU subscription. However, to mirror the Update bundle for a specific RES catalog, you must configure a YUM subscription. You cannot use an NU subscription because of the limitation of the distro target information in the RES catalog metadata in the NU repository.
To use a YUM subscription to mirror the RES catalogs from the NU repository:
Run the following command to verify if there are any RES or Red Hat catalogs on the remote NU server:
zlmmirror slc -c NU_mirror_configuration_file -v
This lists the catalogs on the remote NU server.
In the NU mirror configuration file's <RemoteServer> section, edit the following configuration elements:
In the <Catalog> section, edit the following configuration element:
In the <Catalog> section, it is not necessary to provide a value for the <Target> tag, because the bundles of the catalog must be separately mirrored for each target. If you specify a value for the <Target> tag, you can only mirror those architecture packages that match the specified target.You must specify separate URLs for each target in the <Base> tag in the configuration file’s <Remote Server> section.
To mirror catalog packages for 32-bit RHEL targets such as rhel-5-i386, the mirroring process automatically mirrors the packages of all compatible 32-bit architectures such as i386, i586, i686, and noarch.
To mirror catalog packages for 64-bit RHEL targets such as rhel-5-x86_64 to a given bundle, the packages for 32-bit architecture are added as target rhel-5-i386 in the bundle. You must convert targets of all the 32-bit architecture packages in the mirrored bundle from 32-bit to the corresponding 64-bit target by using the zlman bap command.
For example, to convert all the 32-bit architecture packages from rhel-5-i386 to the corresponding rhel-5-x86_64 target, you must run the zlman bap command as follows:
zlman bap --freshen=true bundle_name rhel-5-x86_64 /var/opt/novell/zenworks/pkg-repo/bundles/first_two_letters_of_the_bundle_GUID/bundle_GUID/bundle_version/rhel-5-i386/*.rpm.
Save the configuration file.