Centos7.6如何升级为Centos8

[复制链接] |主动推送
查看179 | 回复0 | 2024-9-12 00:55:06 | 显示全部楼层 |阅读模式
1.输入该命令按回车键:yum -y install epel-release

001944i8kjng6vxt1u8aun.jpg

2.输入该命令按回车键:yum -y install rpmconf yum-utils

001944fbblnefbrqqe1fpx.jpg

3.输入该命令按回车键:rpmconf -a,出现提示输入Y按回车键

001944szvvh2vplxdiml2b.jpg

4.输入该命令按回车键:yum -y install dnf

001944afsz3x3yoyf8zb6s.jpg

5.输入该命令按回车键:dnf -y remove yum yum-metadata-parser

001944xuuo25qe7qoq27uc.jpg

6.输入该命令按回车键:rm -rf /etc/yum

001944r2x22df0y9y0nd9m.jpg

7.输入该命令按回车键:dnf -y upgrade

001944g9188ad9y88ze4gj.jpg

8.输入该命令按回车键:dnf -y install https://mirrors.aliyun.com/centos/8/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}
001944bvaefxkkgwvawghx.jpg

9.输入该命令按回车键dnf -y upgrade https://mirrors.bfsu.edu.cn/epel/epel-release-latest-8.noarch.rpm
001944m1zitit2wsr2uizi.jpg

10.输入该命令按回车键:dnf clean all

001944pjpurntoupbb33bk.jpg

11.输入该命令按回车键:rpm -e `rpm -q kernel`
001945qeeafe113wdtce57.jpg

12.输入该命令按回车键:rpm -e --nodeps sysvinit-tools

001945pgnqe644oq600gaf.jpg

13.输入该命令按回车键:dnf -y --releasever=8 --allowerasing --setopt=deltarpm=false distro-sync
001945s9j5ttnsn4rs2xnl.jpg

14.输入该命令按回车键查看版本:cat /etc/redhat-release

001945ebvis8kfsapq6kpa.jpg
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则