yum -y install epel-release

yum -y install rpmconf yum-utils

rpmconf -a

yum -y install dnf

dnf -y remove yum yum-metadata-parser

rm -rf /etc/yum

1
2
3
4 |
dnf -y upgrade dnf -y upgrade http://mirrors.163.com/centos/8.0.1905/BaseOS/x86_64/os/Packages/centos-release-8.0-0.1905.0.9.el8.x86_64.rpm dnf clean all |

rpm -e --nodeps `rpm -q kernel`

1 |
dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync |

1
2
3
4 |
rpm -e --nodeps sysvinit-tools-2.88-14.dsf.el7.x86_64 rpm -e --nodeps python-inotify-0.9.4-4.el7.noarch rpm -e --nodeps adwaita-qt5-1.0-1.el7.x86_64 rpm -e --nodeps pycairo-1.8.10-8.el7.x86_64 |

1 |
dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync |
rpmconf -a

reboot
总结
以上所述是小编给大家介绍的从Centos7升级到Centos8的教程,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对脚本之家网站的支持!