No enabled repositories and no way to enable them

Good day.
I’ve ordered VPS with Alma Linux 8.5 and was surprised that no repositories were enabled.

[root@server ~]# yum repolist
repo id              repo name

So I’ve tried to enable ‘almalinux’ repository

[root@server ~]# yum-config-manager --enable almalinux
-bash: yum-config-manager: command not found

So if config manager command is missing I should install it via

yum install yum-utils

But I can’t since I have no repositores.

First, ‘yum’ in el8 is a symlink to ‘dnf’. The ‘dnf’ is a python3-based, while yum in el7 was python2-based. They do differ in some details.

One is that yum-config-manager was a separate command, while el8 has it as dnf plugin.
These mean same:

dnf config-manager
yum config-manager

The names of repositories in el8 are also different from el7. For Alma 8 they are:
baseos, appstream, extras, and powertools (which is disabled by default).

However, if no repo is enabled, then there are customizations and one should look at what
(disabled) definitions do exist:

dnf repolist --all

Or what repo definition files are in the system:

ls -l /etc/yum.repos.d/

It might be that there are none.

However, the current (and only) supported version of AlmaLinux 8 is 8.7.
It would be understandable to still get 8.6 image because the release of 8.7 is recent.
The 8.5 was released about a year ago and replaced with 8.6 last May. Definitely outdated,
but can be updated to current content with dnf up once repo definitions are fixed.

Thank you for your response. I would gladly update if I could.

[root@server ~]# dnf repolist --all
repo id                        repo name                                status
epel                           Extra Packages for Enterprise Linux 8 -  enabled
epel-debuginfo                 Extra Packages for Enterprise Linux 8 -  disabled
epel-modular                   Extra Packages for Enterprise Linux Modu disabled
epel-modular-debuginfo         Extra Packages for Enterprise Linux Modu disabled
epel-modular-source            Extra Packages for Enterprise Linux Modu disabled
epel-source                    Extra Packages for Enterprise Linux 8 -  disabled
epel-testing                   Extra Packages for Enterprise Linux 8 -  disabled
epel-testing-debuginfo         Extra Packages for Enterprise Linux 8 -  disabled
epel-testing-modular           Extra Packages for Enterprise Linux Modu disabled
epel-testing-modular-debuginfo Extra Packages for Enterprise Linux Modu disabled
epel-testing-modular-source    Extra Packages for Enterprise Linux Modu disabled
epel-testing-source            Extra Packages for Enterprise Linux 8 -  disabled
ha                             AlmaLinux 8 - HighAvailability           disabled
ha-debuginfo                   AlmaLinux 8 - HighAvailability debuginfo disabled
ha-source                      AlmaLinux 8 - HighAvailability Source    disabled
nfv                            AlmaLinux 8 - Real Time for NFV          disabled
nfv-debuginfo                  AlmaLinux 8 - Real Time for NFV Debuginf disabled
nfv-source                     AlmaLinux 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
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
rt-source                      AlmaLinux 8 - Real Time Sources          disabled
sap                            AlmaLinux 8 - SAP                        disabled
sap-debuginfo                  AlmaLinux 8 - SAP Debuginfo              disabled
sap-source                     AlmaLinux 8 - SAP Sources                disabled
saphana                        AlmaLinux 8 - SAP HANA                   disabled
saphana-debuginfo              AlmaLinux 8 - SAP HANA Debuginfo         disabled
saphana-source                 AlmaLinux 8 - SAP HANA Sources           disabled

I’m not seeing baseos, appstream or extras
As for dnf config manager:

[root@server ~]# dnf config-manager
No such command: config-manager. Please use /usr/bin/dnf --help
It could be a DNF plugin command, try: "dnf install 'dnf-command(config-manager)'"

Create file /etc/yum.repos.d/myrescue.repo with content:

[myrescue]
name=My AlmaLinux $releasever - BaseOS
mirrorlist=https://mirrors.almalinux.org/mirrorlist/$releasever/baseos
enabled=1
gpgcheck=1
countme=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-AlmaLinux

Then run dnf install almalinux-release.

If that succeeds and you get the missing repos, then you can remove the /etc/yum.repos.d/myrescue.repo, run dnf up, and reboot.

I did all of that. It seems that I now have AlmaLinux 8.7.

[root@server ~]# cat /etc/os-release
NAME="AlmaLinux"
VERSION="8.7 (Stone Smilodon)"
ID="almalinux"
ID_LIKE="rhel centos fedora"
VERSION_ID="8.7"
PLATFORM_ID="platform:el8"
PRETTY_NAME="AlmaLinux 8.7 (Stone Smilodon)"
ANSI_COLOR="0;34"
LOGO="fedora-logo-icon"
CPE_NAME="cpe:/o:almalinux:almalinux:8::baseos"
HOME_URL="https://almalinux.org/"
DOCUMENTATION_URL="https://wiki.almalinux.org/"
BUG_REPORT_URL="https://bugs.almalinux.org/"

ALMALINUX_MANTISBT_PROJECT="AlmaLinux-8"
ALMALINUX_MANTISBT_PROJECT_VERSION="8.7"
REDHAT_SUPPORT_PRODUCT="AlmaLinux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.7"

dnf up shows no updates.
But when I try to see the list of repos I still don’t see baseos or appstream repos:

[root@server ~]# dnf repolist --all
repo id                        repo name                                status
epel                           Extra Packages for Enterprise Linux 8 -  enabled
epel-debuginfo                 Extra Packages for Enterprise Linux 8 -  disabled
epel-modular                   Extra Packages for Enterprise Linux Modu disabled
epel-modular-debuginfo         Extra Packages for Enterprise Linux Modu disabled
epel-modular-source            Extra Packages for Enterprise Linux Modu disabled
epel-source                    Extra Packages for Enterprise Linux 8 -  disabled
epel-testing                   Extra Packages for Enterprise Linux 8 -  disabled
epel-testing-debuginfo         Extra Packages for Enterprise Linux 8 -  disabled
epel-testing-modular           Extra Packages for Enterprise Linux Modu disabled
epel-testing-modular-debuginfo Extra Packages for Enterprise Linux Modu disabled
epel-testing-modular-source    Extra Packages for Enterprise Linux Modu disabled
epel-testing-source            Extra Packages for Enterprise Linux 8 -  disabled
ha                             AlmaLinux 8 - HighAvailability           disabled
ha-debuginfo                   AlmaLinux 8 - HighAvailability debuginfo disabled
ha-source                      AlmaLinux 8 - HighAvailability Source    disabled
nfv                            AlmaLinux 8 - Real Time for NFV          disabled
nfv-debuginfo                  AlmaLinux 8 - Real Time for NFV Debuginf disabled
nfv-source                     AlmaLinux 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
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
rt-source                      AlmaLinux 8 - Real Time Sources          disabled
sap                            AlmaLinux 8 - SAP                        disabled
sap-debuginfo                  AlmaLinux 8 - SAP Debuginfo              disabled
sap-source                     AlmaLinux 8 - SAP Sources                disabled
saphana                        AlmaLinux 8 - SAP HANA                   disabled
saphana-debuginfo              AlmaLinux 8 - SAP HANA Debuginfo         disabled
saphana-source                 AlmaLinux 8 - SAP HANA Sources           disabled

And if I try to for example install nano:

[root@server ~]# dnf install nano
Last metadata expiration check: 0:09:02 ago on Fri Nov 25 08:53:31 2022.
No match for argument: nano
Error: Unable to find a match: nano

It seems that updaing the OS didn’t automatically add baseos, appstream repositories.
I created myrescue.repo again and tried to run ‘dnf up’:

[root@server ~]# dnf up
My AlmaLinux 8 - BaseOS                            3.4 kB/s | 3.8 kB     00:01
Error:
 Problem 1: cannot install both authselect-1.2.5-1.el8.x86_64 and authselect-1.2.2-3.el8.x86_64
  - package authselect-compat-1.2.2-3.el8.x86_64 requires authselect(x86-64) = 1.2.2-3.el8, but none of the providers can be installed
  - cannot install the best update candidate for package authselect-1.2.2-3.el8.x86_64
  - problem with installed package authselect-compat-1.2.2-3.el8.x86_64
 Problem 2: cannot install both net-snmp-libs-1:5.8-25.el8.x86_64 and net-snmp-libs-1:5.8-22.el8.x86_64
  - package net-snmp-1:5.8-22.el8.x86_64 requires net-snmp-libs(x86-64) = 1:5.8-22.el8, but none of the providers can be installed
  - cannot install the best update candidate for package net-snmp-libs-1:5.8-22.el8.x86_64
  - problem with installed package net-snmp-1:5.8-22.el8.x86_64
 Problem 3: cannot install both perl-interpreter-4:5.26.3-421.el8.x86_64 and perl-interpreter-4:5.26.3-420.el8.x86_64
  - package perl-4:5.26.3-420.el8.x86_64 requires perl-interpreter(x86-64) = 4:5.26.3-420.el8, but none of the providers can be installed
  - cannot install the best update candidate for package perl-interpreter-4:5.26.3-420.el8.x86_64
  - problem with installed package perl-4:5.26.3-420.el8.x86_64
 Problem 4: cannot install both perl-libs-4:5.26.3-421.el8.x86_64 and perl-libs-4:5.26.3-420.el8.x86_64
  - package perl-devel-4:5.26.3-420.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-420.el8, but none of the providers can be installed
  - cannot install the best update candidate for package perl-libs-4:5.26.3-420.el8.x86_64
  - problem with installed package perl-devel-4:5.26.3-420.el8.x86_64
 Problem 5: cannot install both platform-python-pip-9.0.3-22.el8.noarch and platform-python-pip-9.0.3-20.el8.noarch
  - package python3-pip-9.0.3-20.el8.noarch requires platform-python-pip = 9.0.3-20.el8, but none of the providers can be installed
  - cannot install the best update candidate for package platform-python-pip-9.0.3-20.el8.noarch
  - problem with installed package python3-pip-9.0.3-20.el8.noarch
 Problem 6: cannot install both perl-libs-4:5.26.3-421.el8.x86_64 and perl-libs-4:5.26.3-420.el8.x86_64
  - package perl-Errno-1.28-421.el8.x86_64 requires perl-libs(x86-64) = 4:5.26.3-421.el8, but none of the providers can be installed
  - package perl-utils-5.26.3-420.el8.noarch requires perl-libs = 4:5.26.3-420.el8, but none of the providers can be installed
  - cannot install the best update candidate for package perl-Errno-1.28-420.el8.x86_64
  - problem with installed package perl-utils-5.26.3-420.el8.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

The package almalinux-release does provide file /etc/yum.repos.d/almalinux.repo which in turn has definitions of the base repos.

What do you see with: ls -l /etc/yum.repos.d/

It seems that almalinux-release did add the necessary repo file, it just was saved as “almalinux.repo.rpmnew”. I renamed it into “almalinux.repo”.
I successfully ran “dnf up” after that and updated packages. It seems everything works now. Thank you.