升级前请做好数据备份以及重要配置备份!
注意:如遇问题,请进群咨询。
群号:831037125
AlmaLinux 9.0 基于上游内核版本 5.14,包含围绕云和容器开发的增强功能,以及对 Web 控制台的改进。此版本还增强了安全性和合规性,包括额外的安全配置文件、大大改进的 SELinux 性能和用户身份验证日志。
其他各种更新包括 Python 3.9、GCC 11 和最新版本的 LLVM、Rust 和 Go 编译器。
1.安装epel源
dnf -y install epel-release
2.更新系统至最新版
dnf -y update
3.重启系统
reboot
4.安装rpmconf和yum-utils
dnf -y install rpmconf yum-utils
5.执行rpmconf ,如果出现一些提示,请输入Y和回车继续,如果没提示继续第四步操作
rpmconf -a
6.安装almalinux-release包
rpm -e --nodeps `rpm -qa|grep almalinux`
rpm -ivh --nodeps --force http://mirrors.aliyun.com/almalinux/9/BaseOS/x86_64/os/Packages/almalinux-gpg-keys-9.0-3.el9.x86_64.rpm
rpm -ivh --nodeps --force http://mirrors.aliyun.com/almalinux/9/BaseOS/x86_64/os/Packages/almalinux-release-9.0-3.el9.x86_64.rpm
rpm -ivh --nodeps --force http://mirrors.aliyun.com/almalinux/9/BaseOS/x86_64/os/Packages/almalinux-repos-9.0-3.el9.x86_64.rpm
dnf clean all
7.升级AlmaLinux-9
dnf -y --releasever=9 --allowerasing --setopt=deltarpm=false distro-sync
8. 重建rpm数据库
rpm --rebuilddb
9.卸载AlmaLinux-8的内核
rpm -e --nodeps `rpm -qa|grep -i kernel`
10.安装内核(防止有些时候没安装内核开机失败,开机失败的可以用Centos8 ISO镜像救援模式安装内核)
dnf -y install kernel kernel-core shim
11.安装基础环境
dnf -y groupinstall "Minimal Install"
12.安装rpmconf和yum-utils
dnf -y install rpmconf yum-utils
13.执行rpmconf,会出现如下界面,一直输入Y和回车即可
rpmconf -a
14.执行下面两条命令,防止迁移完成后找不到引导,重启开不了机
export grubcfg=`find /boot/ -name almalinux`
grub2-mkconfig -o $grubcfg/grub.cfg
15.禁用无效module,处理:冲突的请求,没有东西提供 module(platform:el8)(模块 python36:3.6:8050020211009220235:982725ab.x86_64 需要它)。
dnf module disable python36 -y
16.重启系统
reboot



