Skip to main content

RHEL Repos

Ensure Register

Check register Status with these commands.  Output might no match exactly just general checks to see if anything looks weird.

sudo subscription-manager identity
system identity: 3634c02b-c3ce-4533-8151-8c7cc2d13318
name: RP-Host-03
org name: 7752782
org ID: 7752782

And

sudo subscription-manager status
+-------------------------------------------+
   System Status Details
+-------------------------------------------+
Overall Status: Registered
Content Access Mode is set to Simple Content Access. This host has access to content, regardless of subscription status.

Register if not

sudo subscription-manager register --org=7752782 --activationkey=KEY_HERE

Repos

Repos should be added automatically after registering.  Check to ensure the correct repos are enabled.

Ensure only these repos are enabled

  • rhel-8-for-x86_64-baseos-rpms
  • rhel-8-for-x86_64-appstream-rpms
sudo subscription-manager repos --list-enabled

Should show

+----------------------------------------------------------+
    Available Repositories in /etc/yum.repos.d/redhat.repo
+----------------------------------------------------------+
Repo ID:   rhel-8-for-x86_64-baseos-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/8.10/x86_64/baseos/os
Enabled:   1

Repo ID:   rhel-8-for-x86_64-appstream-rpms
Repo Name: Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)
Repo URL:  https://cdn.redhat.com/content/dist/rhel8/8.10/x86_64/appstream/os
Enabled:   1

Run updates

sudo dnf update -y

Failed EUS Repositories

Redhat adds Extended Update Support (EUS) repos to the list by default.  These can be disabled as they are only required for unsupported dependencies.

Fix for most cases

sudo subscription-manager repos \
  --disable=rhel-8-for-x86_64-baseos-eus-rpms \
  --disable=rhel-8-for-x86_64-appstream-eus-rpms
sudo dnf update -y

Manual Checking

Check the listed repos

sudo subscription-manager repos --list-enabled

Disable repos by name

sudo subscription-manager repos --disable=rhel-8-for-x86_64-baseos-eus-rpms

Run upgrades

sudo dnf update -y