CentOS 8 无痕升级到 Rocky Linux
1.升级当前系统
dnf upgrade -y
2.重启当前系统:
reboot
3.下载脚本:
CentOS 8 到 Rocky Linux 8
https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh
8 至 9
curl -O https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky9.sh
4.给脚本授权
chmod +x migrate2rocky.sh
5.运行脚本
bash migrate2rocky.sh -r
6.同步软件包
dnf distro-sync -y
7.重启系统
reboot
8.查看系统版本:
cat /etc/redhat-release