When you try to install using package manager on CentOS Linux after EOL date (December 31, 2021) you'll get an error:
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
That's because repositories have been moved to centos project vault location. A way to handle is to point urls from repos configuration to centos vault location. Then it's possible to update CentOS (for example, from previous version 8.4.2105) to the latest version 8.5.2111. From there you could shift towards Rocky Linux or CentOS Stream following recommended procedure.
Do everything in tmux terminal in case you are doing this remotely. The connection can be lost in the middle of work, leaving an upgrade possible in non recoverable state.
sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo
sed -i 's|^#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|' /etc/yum.repos.d/*.repo
dnf -y install tmux
tmux new -s upgrade
dnf -y update
cd /usr/local/src
curl https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh -o migrate2rocky.sh
bash migrate2rocky.sh -r
dnf -y install centos-release-stream
dnf -y swap centos-{linux,stream}-repos
dnf -y distro-sync