环境
centos7.9
介绍
CentOS Linux 7的维护期将于2024年6月结束, CentOS Linux 8的维护期将于2021年12月结束。 考虑到公司目前阿里云上部署的是CentOS 7.9,将其转换为阿里云的Anolis OS是最合理的选择。 Anolis OS是基于CentOS的分支,提供了一些额外的功能和优化,更适合中国用户和场景。 以下是将CentOS 7.9升级到阿里的Anolis OS的指导。
步骤
- 查看本机的版本
cat /etc/redhat-release
2. 添加镜像源
wget https://mirrors.openanolis.cn/migration/anolis-migration.repo -O /etc/yum.repos.d/anolis-migration.repo
- 安装工具包
yum -y install centos2anolis
- 安装
centos2anolis.py
经过漫长的等待后,