Enable Repos Alma Linux Yum (yum-config-manager)

May 2023

Using our AlmaLinux installer means that many repositories are not enabled, this is a short guide on how to resolve this.
From the command line, use the following command:

yum repolist --all

You should see a list similar to the following, albeit with different repositories.

repo id repo name status
alma-updates-8.7-2023.04.26 alma-updates-8.7-2023.04.26 enabled
appstream AlmaLinux 8 - AppStream disabled
appstream-debuginfo AlmaLinux 8 - AppStream debuginfo disabled
appstream-source AlmaLinux 8 - AppStream Source disabled
baseos AlmaLinux 8 - BaseOS disabled
baseos-debuginfo AlmaLinux 8 - BaseOS debuginfo disabled
baseos-source AlmaLinux 8 - BaseOS Source disabled
extras AlmaLinux 8 - Extras disabled
extras-debuginfo AlmaLinux 8 - Extras debuginfo disabled
extras-source AlmaLinux 8 - Extras Source disabled
ha AlmaLinux 8 - HighAvailability disabled
ha-debuginfo AlmaLinux 8 - HighAvailability debuginfo disabled
ha-source AlmaLinux 8 - HighAvailability Source disabled
install-utils_repo install-utils_repo repo disabled
k3s-pre-reqs_repo k3s-pre-reqs_repo repo disabled
mkel_repo mkel_repo repo enabled
nfv AlmaLinux 8 - Real Time for NFV disabled
nfv-debuginfo AlmaLinux 8 - Real Time for NFV Debuginfo disabled
nfv-source AmaLinux 8 - Real Time for NFV Sources disabled
plus AlmaLinux 8 - Plus disabled
plus-debuginfo AlmaLinux 8 - Plus debuginfo disabled
plus-source AlmaLinux 8 - Plus Source disabled
powertools AlmaLinux 8 - PowerTools disabled
powertools-debuginfo AlmaLinux 8 - PowerTools debuginfo disabled
powertools-source AlmaLinux 8 - PowerTools Source disabled
reboot-daemon_repo reboot-daemon_repo repo disabled
resilientstorage AlmaLinux 8 - ResilientStorage disabled
resilientstorage-debuginfo AlmaLinux 8 - ResilientStorage debuginfo disabled
resilientstorage-source AlmaLinux 8 - ResilientStorage Source disabled
rt AlmaLinux 8 - Real Time disabled
rt-debuginfo AlmaLinux 8 - Real Time Debuginfo disabled

if you get an error (command not found), due to the software not being available, you can install it by using:

yum install yum-utils

This should install as shown below:

Last metadata expiration check: 1:01:22 ago on Tue 10 Oct 2023 06:26:57 PM UTC.
Dependencies resolved.
=======================================================================================================================================================================================================
Package Architecture Version Repository Size
=======================================================================================================================================================================================================
Installing:
yum-utils noarch 4.0.21-14.1.el8 alma-updates-8.7-2023.04.26 73 k
Transaction Summary
=======================================================================================================================================================================================================
Install 1 Package
Total size: 73 k
Installed size: 23 k
Is this ok [y/N]: y
Downloading Packages:
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : yum-utils-4.0.21-14.1.el8.noarch 1/1
Running scriptlet: yum-utils-4.0.21-14.1.el8.noarch 1/1
Verifying : yum-utils-4.0.21-14.1.el8.noarch 1/1
Installed:
yum-utils-4.0.21-14.1.el8.noarch
Complete!

Now the repositories can be enabled using the package manger yum, first test that yum-config-manager is working:

yum-config-manager --version

You should get a valid response similar to the following:

4.7.0
Installed: dnf-0:4.7.0-11.el8.alma.noarch at Tue 08 Aug 2023 12:43:43 PM GMT
Built : AlmaLinux Packaging Team <packager@almalinux.org> at Wed 12 Oct 2022 09:46:34 AM GMT
Installed: rpm-0:4.14.3-24.el8_7.x86_64 at Tue 08 Aug 2023 12:42:46 PM GMT
Built : AlmaLinux Packaging Team <packager@almalinux.org> at Wed 09 Nov 2022 03:50:55 PM GMT

Now repositories can be enabled, for our servers the following should be enabled:

yum-config-manager --enable appstream baseos extras

This will enable the following repositories:

repo id repo name status
appstream AlmaLinux 8 - AppStream enabled
baseos AlmaLinux 8 - BaseOS enabled
extras AlmaLinux 8 - Extras enabled

Now you can install software and other repos as required.