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.
-
You understand the support status of the version of MicroShift you are using.
-
You have root-user access to your build host.
-
You reviewed the Red Hat Device Edge release compatibility matrix.
-
Avoid unintended updates by locking your operating system version by running the following command:
$ sudo subscription-manager release --set=9.6 -
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-rpmsYou can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.
-
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-rpmsYou can replace 9 with the major version of your compatible RHEL system if it is not same version given in this example.
-
List the repositories you have enabled for RHEL by running the following command:
$ sudo subscription-manager repos --list-enabledExample 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