centos7迁移龙蜥anolis7.9

本文介绍了如何在内网搭建AnolisOS和CentOS的镜像站,包括同步AnolisOS镜像、在CentOS7下建立阿里云镜像本地yum仓库,以及使用centos2anolis迁移工具进行系统迁移的过程,遇到的问题和解决方法。
摘要由CSDN通过智能技术生成

Anolis OS 7,结束日期是 2024 年 6 月 30 日Anolis OS 8 整体结束的支持日期为 2031 年 4 月 30 日

在内网搭建龙蜥镜像站

RSYNC_PASSWORD=Rsync@2020 rsync -avz --exclude='*/isos/*iso' --exclude='23.0' --exclude='8.2' --exclude='8.4' --exclude='8.5' --exclude='8.6' --exclude='8.8' --exclude='8.9' rsync://rsync_user@rsync.openanolis.cn/anolis/ /mnt/data/anolis

CentOS7下同步阿里云CentOS7镜像建本地yum仓库基本步骤

1.下载本地yum


#下载插件
#备份yum源
rm -rf /etc/yum.repos.d/bak && mkdir -p /etc/yum.repos.d/bak && mv /etc/yum.repos.d/* /etc/yum.repos.d/bak

cat > /etc/yum.repos.d/epel_7.repo <<EOF
[base]
name=CentOS-Base(GDS)
baseurl=http://192.168.1.2/Aliyun/CentOS/7/64bit/base
path=/
enabled=1
gpgcheck=0
 
[updates]
name=CentOS-Updates(GDS)
baseurl=http://192.168.1.2/Aliyun/CentOS/7/64bit/updates
path=/
enabled=1
gpgcheck=0
 
[extras]
name=CentOS-Extras(GDS)
baseurl=http://192.168.1.2/Aliyun/CentOS/7/64bit/extras
path=/
enabled=1
gpgcheck=0
EOF


yum -y install wget yum-utils gcc python3-devel python3


wget http://192.168.1.2/centos7/CentOS7-Base.repo -O /etc/yum.repos.d/CentOS7-Base.repo
yum -y install python36-psutil



2.安装迁移工具centos2anolis

wget http://192.168.1.2/anolis/migration/anolis-migration.repo -O /etc/yum.repos.d/anolis-migration.repo


yum clean all && yum makecache

#安装迁移工具centos2anolis:  
yum -y install centos2anolis

3.使用本地 yum 源执行迁移

#使用本地 yum 源执行迁移
wget http://192.168.1.2/anolis/switch-to-anolis.repo  /etc/yum.repos.d/switch-to-anolis.repo

#执行命令迁移
centos2anolis.py -l

3.1 解决: 执行命令迁移

#升级,查看系统版本
yum distro-sync -y  && centos2anolis.py -l && cat /etc/os-release

执行命令迁移

报错:

Error getting repository data for Plus, repository not found
Could not automatically sync with Anolis OS repositories.
Check the output of ‘yum distro-sync’ to manually resolve the issue.
After you resolve the issue, Please use 'python3 centos2anolis.py -c ’ to continue migration

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

大虾别跑

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值