Enabling required RHEL repositories

Last Updated : Aug 15, 2022 |

About this task

If you subscribe to the Red Hat subscription, you must enable the following RHEL repositories before installing the system layer:

  • rhel-8-for-x86_64-baseos-rpms

  • rhel-8-for-x86_64-appstream-rpms

These repositories contain RPMs that are required for system layer installation.

Before you begin

Subscribe to the Red Hat subscription.

Procedure

  1. Log in to the RHEL virtual machine as the root user using an SSH connection.
  2. Run the following command to view the enabled repositories:

    yum repolist

  3. Ensure that the command output contains the following entries in the repo idcolumn:
    • rhel-8-for-x86_64-baseos-rpms for rhel-8-for-x86_64-baseos-rpms.

    • rhel-8-for-x86_64-appstream-rpms for rhel-8-for-x86_64-appstream-rpms

  4. If the command output does not contain the required entries, do the following:
    • To enable the rhel-8-for-x86_64-baseos-rpms repository, run the following command:

      subscription-manager repos --enable=rhel-8-for-x86_64-baseos-rpms

    • To enable the rhel-8-for-x86_64-appstream-rpms repository, run the following command:

      subscription-manager repos --enable=rhel-8-for-x86_64-appstream-rpms