赞
踩
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仓库基本步骤
#下载插件
#备份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
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
#使用本地 yum 源执行迁移
wget http://192.168.1.2/anolis/switch-to-anolis.repo /etc/yum.repos.d/switch-to-anolis.repo
#执行命令迁移
centos2anolis.py -l
#升级,查看系统版本
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
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。