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