Centos8 stream如何升级为Centos9 stream

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

001935jpunxm1up0jjvnfp.jpg

2.输入该命令按回车键:dnf -y update

001936k7rfr5vqtcd7trvc.jpg

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

001936onnz7nk77njz78jn.jpg

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

001936bzdtne22y7fyovh2.jpg

5.输入该命令按回车键:dnf -y remove rpmconf yum-utils epel-release

001936sy68yho5so9n685l.jpg

6.输入该命令按回车键:rpm -e --nodeps `rpm -qa|grep centos`
001936rio3gbavqaq878sq.jpg

7.输入该命令按回车键:rpm -ivh --nodeps --force https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-release-9.0-12.el9.noarch.rpm,
001936oyo555sq555s4bq4.jpg

8.输入该命令按回车键:rpm -ivh --nodeps --force https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-9.0-12.el9.noarch.rpm
001936slrlqooqoj1qcrje.jpg

9.输入该命令按回车键:rpm -ivh --nodeps --force https://mirrors.aliyun.com/centos-stream/9-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-9.0-12.el9.noarch.rpm,
001936zc1z0e5d8msw8ldu.jpg

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

001936kllrmr96smxsoofo.jpg

11.输入该命令按回车键:dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync
001936vqadddlqkjnddnuj.jpg

12.输入该命令按回车键:rpm --rebuilddb

001936pwmf9hhbamaewhcc.jpg

13.输入该命令按回车键:rpm -e --nodeps `rpm -qa|grep -i kernel`
001937i4tx4888w2pj8vst.jpg

14.输入该命令按回车键:dnf -y install kernel

001937isv993xv33afx2i9.jpg

15.输入该命令按回车键:dnf -y install kernel-core

001937v7ssszdfzers7urr.jpg

16.输入该命令按回车键:dnf -y install shim

001937o2d6skcezn6cpn4s.jpg

17.输入该命令按回车键:dnf group install minimal-environment -y

001937vo6i2b6rr6idu6gr.jpg

18.输入该命令按回车键:dnf -y install epel-release

001937z79i6nknkkknniz7.jpg

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

001937ps8ywslod03sy7ly.jpg

20.输入该命令按回车键:dnf -y update

001937hep6c8nnc6476t54.jpg

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

001937m4oafrogdoaeol6w.jpg

22.输入该命令按回车键:grub2-mkconfig -o /boot/grub2/grub.cfg

001937umyy8ahl3yldaad3.jpg

23.输入该命令按回车键:grub2-install /dev/sda

001938wzyx3bbf30bpxfjp.jpg

24.输入该命令按回车键:echo "PermitRootLogin yes" >> /etc/ssh/sshd_config

001938yqdyrdzt1uuqn7ty.jpg

25.输入该命令按回车键重启后再操作连接:reboot

001938tljzz7399c7c7c9j.jpg

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

001938ocrvyleyccrverc6.jpg
回复

使用道具 举报

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

本版积分规则