随着CentOS 7.9正式结束了自己的生命周期,大家也纷纷开始选择相应的替代品。如果想要可靠的分支,无疑转换到Debian是个不错的选择。但是微魔折腾了一下Debian 12搭配宝塔,但是很遗憾,在1G内存的配置下,MySQL经常把内存吃到爆。于是,最近开始想着把折腾回CentOS系列。一个候选是Rocky Linux,官方提供了转换脚本。至于为什么不直接安装Rocky Linux的镜像,主要是因为腾讯云的轻量并不提供Rocky Linux的镜像…
#折腾# 将CentOS 8转换到Rocky Linux 8
下载脚本
curl https://raw.githubusercontent.com/rocky-linux/rocky-tools/main/migrate2rocky/migrate2rocky.sh -o migrate2rocky.sh
更改权限
chmod u+x migrate2rocky.sh
运行脚本
./migrate2rocky.sh -r
出现如下画面就是开始正常安装了,需要时间较长
CentOS Stream Migration Notes: Because CentOS Stream leads RockyLinux by the next point release many packages in Stream will have higher version numbers than those in RockyLinux, some will even be rebased to a new upstream version. Downgrading these packages to the versions in RockyLinux carries the risk that the older version may not recognize config files, data or other files generated by the newer version in Stream. To avoid issues with this the newer package versions from CentOS Stream have been retained. Also the CentOS Stream repositories have been retained but renamed with a prefix of "stream-" to avoid clashing with RockyLinux repositories, but these same repos have also been disabled so that future package installs will come from the stock RockyLinux repositories. If you do nothing except update to the next point release of RockyLinux when it becomes available then the packages retained from Stream should be replaced at that time. If you need to update a package from Stream (eg: to fix a bug or security issue) then you will need to enable the appropriate repository to do so. Done, please reboot your system. A log of this installation can be found at /var/log/migrate2rocky.log