Chapter 13. Updating Red Hat Update Infrastructure

This chapter explains how to update your Red Hat Update Infrastructure installation.
Red Hat Update Infrastructure can be configured to provide and use a repository that will update the Red Hat Update Infrastructure installation itself. The repository can be created using RHUI Manager, which can then generate an entitlement certificate and client configuration RPM. The RPM is then installed on the RHUA and each CDS instance, and future updates can be downloaded and installed using the yum command.

Procedure 13.1. Updating Red Hat Update Infrastructure

  1. Add the Red Hat Update Infrastructure repositories to the RHUA. Use the procedure in Procedure 5.3, “Add a Red Hat Repository” to install the following repositories:
    Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)
    Red Hat Update Infrastructure 2.0 (RPMs) (6.0-i386)
    Red Hat Update Infrastructure 2.0 (RPMs) (6.1-i386)
    Red Hat Update Infrastructure 2.0 (RPMs) (6.1-x86_64)
    Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
    Red Hat Update Infrastructure 2.0 (RPMs) (6.0-x86_64)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6.1-i386)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6.0-i386)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6.0-x86_64)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-x86_64)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-i386)
    Red Hat Update Infrastructure 2.0 (SRPMS) (6.1-x86_64)
    

    Note

    Using the All in Certificate method to add the repositories will add all these repositories at the same time. If you prefer to use the By Product method, add the product called Red Hat Update Infrastructure 2.0 (RPMs) and, optionally, Red Hat Update Infrastructure 2.0 (SRPMs).
  2. Check that the correct repositories have been installed using RHUI Manager:
    ------------------------------------------------------------------------------
    rhui (repo) => l
    
    Red Hat Repositories
      Red Hat Update Infrastructure 2.0 (RPMs) (6Server-x86_64)
      Red Hat Update Infrastructure 2.0 (RPMs) (6.0-i386)
      Red Hat Update Infrastructure 2.0 (RPMs) (6.1-i386)
      Red Hat Update Infrastructure 2.0 (RPMs) (6.1-x86_64)
      Red Hat Update Infrastructure 2.0 (RPMs) (6Server-i386)
      Red Hat Update Infrastructure 2.0 (RPMs) (6.0-x86_64)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6.1-i386)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6.0-i386)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6.0-x86_64)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-x86_64)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6Server-i386)
      Red Hat Update Infrastructure 2.0 (SRPMS) (6.1-x86_64)
    
    ------------------------------------------------------------------------------
    
  3. Synchronize the repositories. Use the procedure in Procedure 10.4, “Trigger a Repository Synchronization”.
  4. Wait for the repository synchronization to complete, and then synchronize the CDS instances. Use the procedure in Procedure 10.5, “Trigger a CDS Synchronization”.
  5. Generate an entitlement certificate for the Red Hat Update Infrastructure repositories. Use the procedure in Procedure 7.1, “Generate an Entitlement Certificate”.

    Note

    When you name the client configuration RPM, choose a name that will help you to identify that the RPM is to be used for providing updates to Red Hat Update Infrastructure, such as rhui-update.
  6. Install the client configuration RPM on the RHUA and each CDS that requires updating:
    $ rpm -Uvh /tmp/rhui/rhui-update.el6.noarch.rpm
  7. Perform the update using yum. The client configuration RPM will configure a yum repository called rhui-rhui-2.0. Use the yum update command to update each instance. You will need to perform this command as the root user, or with appropriate sudo permissions:
    # yum update
    

    Note

    Running yum update will pull updates from all enabled yum repositories. To pull updates from the the rhui-rhui-2.0 yum repository only, use the following command instead:
    # yum --disablerepo=* --enablerepo=rhui-rhui-2.0 update
    
  8. Restart the service to pick up any changes.
    On the RHUA, restart the pulp-server service:
    $ service pulp-server restart
    
    On each CDS instance, restart the pulp-cds service:
    $ service pulp-cds restart
    

Note

Once the Red Hat Update Infrastructure yum repositories have been configured on the RHUA and the CDS, only the final step Step 8 is required to update those systems.