The following steps will migrate a CentOS7 server to CentOS8. yum -y install epel-release yum -y install yum-utils rpmconf rm -f /etc/ issue.net ; mv /etc/issue.net.rpmsave /etc/ issue.net rpmconf -a # 5 times N rm -rf /etc/yum.repos.d/reece.repo yum clean all package-cleanup --orphans | egrep 'noarch|x86_64' | xargs -r -n 1 yum -y remove package-cleanup --leaves | egrep 'noarch|x86_64' | xargs -r -n 1 yum -y remove # do above until none found - leaves 4-5 times yum install -y dnf dnf remove -y yum yum-metadata-parser rm -Rf /etc/yum dnf -y upgrade dnf -y install http://vault.centos.org/8.5. 2111/BaseOS/x86_64/os/ Packages/{centos-linux-repos- 8-3.el8.noarch.rpm,centos- linux-release-8.5-1.2111.el8. noarch.rpm,centos-gpg-keys-8- 3.el8.noarch.rpm} dnf -y upgrade https://dl.fedoraproject.org/ pub/epel/epel-release-latest- 8.noarch.rpm cd /etc/yum.repos.d && mkdir backups && mv CentOS-* backups tee CentOS-Linux-BaseOS.repo<<