使用說明
CentOS-AltArch的 鏡像 地址為:https://repo.huaweicloud.com/centos-altarch/
1、備份配置文件:
cp -a /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2、下載新的CentOS-Base.repo文件到/etc/yum.repos.d/目錄下(因gpgkey無法動態(tài)適配,已將gpgcheck設(shè)置為0,關(guān)閉校驗,如需打開請設(shè)置為1,并修改gpgkey地址),執(zhí)行如下命令:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-AltArch-7.repo
3、執(zhí)行yum clean all清除原有yum緩存。
4、執(zhí)行yum makecache(刷新緩存)或者yum repolist all(查看所有配置可以使用的文件,會自動刷新緩存)。
相關(guān)網(wǎng)址
CentOS官方地址:http://www.centos.org/
CentOS AltArch 博客地址:https://blog.centos.org/category/altarch/
CentOS AltArch Wiki地址:https://wiki.centos.org/zh/SpecialInterestGroup/AltArch