For Rocky Linux 8, replace the default configuration with the following command.
For Rocky Linux 9, replace the default configuration with the following command.
The above command only replaces the default enabled repo. After replacing, run dnf makecache
to update the cache.