Please remember, due to Centos 8 EOL, update repositories might not be active.
If you encounter errors like below:
Follow these commands and try again: sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*