If you are upgrading in a formal environment, please do a good job of data backup and important configuration backup! Because the upgrade will cause some applications to be uninstalled.
1. Install epel source
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
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 -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
dnf clean all
rpm -e --nodeps
rpm -q kernel``
dnf -y --releasever=8--allowerasing --setopt=deltarpm=false distro-sync
After discovering the error, uninstall the package name that is similar to the from package on the picture
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
Perform the upgrade again after uninstalling
dnf -y --releasever=8--allowerasing --setopt=deltarpm=false distro-sync
rpmconf -a
reboot
to sum up
The above is the tutorial for upgrading from Centos7 to Centos8 introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave me a message, and the editor will reply to you in time. Thank you very much for your support to the ZaLou.Cn website!
If you think this article is helpful to you, welcome to reprint, please indicate the source, thank you!
Recommended Posts