Keeping MicroShift and RHEL in a supported configuration

When using RPM updates, avoid creating an unsupported configuration or breaking your node by carefully managing your RHEL repositories.

Prerequisites
Procedure
  1. Avoid unintended updates by locking your operating system version by running the following command:

    $ sudo subscription-manager release --set=9.6
  2. If you are using an EUS MicroShift release, disable the RHEL standard-support-scope repositories by running the following command:

    $ sudo subscription-manager repos \
        --disable=rhel-9-for-$(uname -m)-appstream-rpms \
        --disable=rhel-9-for-$(uname -m)-baseos-rpms

    You can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.

  3. After you disable the standard-support repositories, enable the RHEL EUS repos by running the following command:

    $ sudo subscription-manager repos \
        --enable rhel-9-for-$(uname -m)-appstream-eus-rpms \
        --enable rhel-9-for-$(uname -m)-baseos-eus-rpms

    You can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.

Verification
  • List the repositories you have enabled for RHEL by running the following command:

    $ sudo subscription-manager repos --list-enabled
    Example output
    +----------------------------------------------------------+
        Available Repositories in /etc/yum.repos.d/redhat.repo
    +----------------------------------------------------------+
    Repo ID:   rhel-9-for-x86_64-baseos-eus-rpms
    Repo Name: Red Hat Enterprise Linux 9 for x86_64 - BaseOS - Extended Update Support (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/baseos/os
    Enabled:   1
    Repo ID:   rhel-9-for-x86_64-appstream-eus-rpms
    Repo Name: Red Hat Enterprise Linux 9 for x86_64 - AppStream - Extended Update Support (RPMs)
    Repo URL:  https://cdn.redhat.com/content/eus/rhel9/$releasever/x86_64/appstream/os
    Enabled:   1