公告:魔扣目录网为广大站长提供免费收录网站服务,提交前请做好本站友链:【 网站目录:https://www.morko.net 】, 免友链快审服务(50元/站),

点击这里在线咨询客服
新站提交
  • 网站:51998
  • 待审:31
  • 小程序:12
  • 文章:1030137
  • 会员:747

前言

centos被redhat收购后,centos官方宣布centos linux项目将停止维护,并使用新推出的centos stream项目替代。新版的centos stream项目在软件更新方式上与centos存在较大差别,具体详情可查看官方说明。

centos8.3以下版本升级到8.51、注释mirrorlistsed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*.repo2、指向baseurl至vault.epel.cloud存储库sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.epel.cloud|g' /etc/yum.repos.d/CentOS-*.repo3、升级系统至Centos 8.5yum update


 

centos8升级到centos8stream1、选择新源dnf --disablerepo '*' --enablerepo extras swap centos-Linux-repos centos-stream-repos2、升级所有软件包至最新稳定发行版dnf distro-sync3、安装epel源dnf -y install epel-release4、重启系统reboot


 

centos8stream升级到centos9stream1、安装必要包管理工具rpmconf和yum-utilsdnf -y install rpmconf yum-utils2、处理所有包的配置文件

如果出现提示,直接输入Y并回车继续,如果没提示继续第三步操作

rpmconf -a3、移除旧版epel源dnf -y remove rpmconf yum-utils epel-release4、安装Centos-Stream-9相关的包

安装过程中有可能出现文件找不到的提示,不用理会直接继续

rpm -e --nodeps `rpm -qa|grep centos` 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 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 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 dnf clean all5、执行升级Centos-Stream-9的命令dnf -y --releasever=9-stream --allowerasing --setopt=deltarpm=false distro-sync6、升级完成后进行相关清理和配置操作#重建rpm数据库 rpm --rebuilddb #卸载Centos-Stream-8的内核,卸载时可能会报错,一般断开所有远程连接后再次运行命令即可 rpm -e --nodeps `rpm -qa|grep -i kernel` #安装新内核及必要语言包 dnf -y install kernel kernel-core shim #安装基础环境dnf group install minimal-environment -y #安装epel源、rpmconf和yum-utilsdnf -y install epel-releasednf -y install rpmconf yum-utils #禁用无效module,处理:冲突的请求,此步需要注意根据具体的冲突的包来禁用 dnf module disable mariadb:10.3 Python/ target=_blank class=infotextkey>Python36 -y #更新系统 dnf -y update #再次处理包配置 rpmconf -a


 

常用优化设置1、禁用防火墙等#禁用防火墙 systemctl disable --now firewalld.service #禁用SELINUX setenforce 0 sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config2、安装启动web控制台

cockpit是一个交互式 Linux 服务器管理接口,能够方便的通过web界面来管理Linux服务器的相关硬件资源和服务,以下是相关的安装和启动命令。

#安装 cockpitdnf install cockpit -y #启动并设置自启动服务 systemctl enable --now cockpit.socket #安装相关插件 dnf install -y cockpit-machines cockpit-podman cockpit-composer总结

以上就是centos8升级centos9stream的操作步骤,此操作步骤已经实际验证过,可以正确运行,请放心使用。

分享到:
标签:Centos
用户无头像

网友整理

注册时间:

网站:5 个   小程序:0 个  文章:12 篇

  • 51998

    网站

  • 12

    小程序

  • 1030137

    文章

  • 747

    会员

赶快注册账号,推广您的网站吧!
最新入驻小程序

数独大挑战2018-06-03

数独一种数学游戏,玩家需要根据9

答题星2018-06-03

您可以通过答题星轻松地创建试卷

全阶人生考试2018-06-03

各种考试题,题库,初中,高中,大学四六

运动步数有氧达人2018-06-03

记录运动步数,积累氧气值。还可偷

每日养生app2018-06-03

每日养生,天天健康

体育训练成绩评定2018-06-03

通用课目体育训练成绩评定