Previously, the repository configuration option skip_if_unavailable was by default set as follows:
skip_if_unavailable=false
This setting forced the yum repolist command to end on first unavailable repository with an error and exit status 1. Consequently, yum repolist did not continue listing available repositories.
yum repolist was fixed to no longer require any downloads. As a result, yum repolist does not provide any output requiring metadata, and the command now continues listing available repositories as expected.
Note that the number of available packages is only returned by yum repolist --verbose or yum repoinfo that still require available metadata. Therefore these commands will end on the first unavailable repository.
Diagnostic Steps
yum repolist command in Rocky Linux 8 does not list the number of packages next to each repository.
# yum repolist
Updating Subscription Management repositories.
repo id repo name
appstream Rocky Linux 8 for x86_64 - AppStream (RPMs)
baseos Rocky Linux 8 for x86_64 - BaseOS (RPMs)
yum repolist command in CentOS 7 lists the number of packages next to each repository.
# yum repolist
[...]
repo id repo name status
rhel-7-server-rpms/7Server/x86_64 CentOS 7 Server (RPMs) 29,413
rhel-server-rhscl-7-rpms/7Server/x86_64 Red Hat Software Collections RPMs for CentOS 7 Server 12,735
rhel-7-server-extras-rpms/x86_64 CentOS 7 Server - Extras (RPMs) 1,303