11.6. Applying Errata to a Host

Use these procedures to review and apply errata to a host.

Prerequisites

  • Synchronize Red Hat Satellite repositories with the latest errata available from Red Hat. For more information, see 「Synchronizing Red Hat Repositories」.
  • Register the host to an environment and Content View on Satellite Server. For more information, see Registering Hosts in the Managing Hosts guide.
  • For RHEL 7 hosts, ensure that you install the katello-agent package. For more information, see Installing the Katello Agent in the Managing Hosts guide.

    Note that the Katello agent is deprecated and will be removed in a future Satellite version. Migrate your workloads to use the remote execution feature to update clients remotely. For more information, see Host Management Without Goferd and Katello Agent in the Managing Hosts Guide.

For Red Hat Enterprise Linux 8

To apply an erratum to a RHEL 8 host, you can run a remote execution job on Satellite Server or update the host. For more information about running remote execution jobs, see Configuring and Setting up Remote Jobs in the Managing Hosts guide.

To apply an erratum to a RHEL 8 host, complete the following steps:

  1. On Satellite, list all errata for the host:

    # hammer host errata list \
    --host client.example.com
  2. Find the module stream an erratum belongs to:

    # hammer erratum info --id ERRATUM_ID
  3. On the host, update the module stream:

    # yum update Module_Stream_Name

For Red Hat Enterprise Linux 7

To apply an erratum to a RHEL 7 host, complete the following steps:

  1. In the Satellite web UI, navigate to Hosts > Content Hosts and select the host you want to apply errata to.
  2. Navigate to the Errata tab to see the list of errata.
  3. Select the errata to apply and click Apply Selected. In the confirmation window, click Apply.
  4. After the task to update all packages associated with the selected errata completes, click the Details tab to view the updated packages.

For CLI Users

To apply an erratum to a RHEL 7 host, complete the following steps:

  1. List all errata for the host:

    # hammer host errata list \
    --host client.example.com
  2. Apply the most recent erratum to the host. Identify the erratum to apply using the erratum ID:

    # hammer host errata apply --host "Host Name" \
    --errata-ids ERRATUM_ID1,ERRATUM_ID2...