Chapter 6. Updating RHEL 9 content

YUM allows you to check if your system has any pending updates. You can list packages that need updating and choose to update a single package, multiple packages, or all packages at once. If any of the packages you choose to update have dependencies, they are updated as well.

The following sections describe how to use YUM to update content in Red Hat Enterprise Linux 9:

6.1. Checking for updates

The following procedure describes how to check the available updates for packages installed on your system using yum.

Procedure

  • To see which packages installed on your system have available updates, use:

    # yum check-update

    The output returns the list of packages and their dependencies that have an update available.

6.2. Updating packages

The following procedure describes how to update a single package, a package group, or all packages and their dependencies using yum.

Procedure

  • To update all packages and their dependencies, use:

    # yum update
  • To update a single package, use:

    # yum update package-name

    Replace package-name with the name of the package.

  • To update a package group, use:

    # yum group update group-name

    Replace group-name with the name of the package group.

Important

When applying updates to the kernel, yum always installs a new kernel regardless of whether you are using the yum update or yum install command.