2022年8月01日
-
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 -y upgrade https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.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