从Centos 7.9升级到Centos 8.4

0aydgbwb  于 2022-11-07  发布在  其他
关注(0)|答案(1)|浏览(216)

我的系统是Centos 7.9,但是内核已经升级到5.4.154(非官方版本)了。现在我想把我的机器升级到8.4。我该怎么做呢?我试了很多方法。但是在某些地方有错误。

rdlzhqv9

rdlzhqv91#

yum install epel-release -y
yum install yum-utils

# yum install rpmconf

# rpmconf -a

# package-cleanup --leaves

# package-cleanup --orphans

# yum install dnf

# dnf -y remove yum yum-metadata-parser

# rm -Rf /etc/yum

# dnf upgrade

# dnf install http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-repos-8-2.el8.noarch.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-release-8.3-1.2011.el8.noarch.rpm http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-2.el8.noarch.rpm

# dnf clean all

# rpm -e `rpm -q kernel`

# rpm -e --nodeps sysvinit-tools

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

# dnf -y install kernel-core

# dnf -y groupupdate "Core" "Minimal Install"

相关问题