Before I had a centos-altarch system installation, the mirror will now be replaced by domestic sources
Backup configuration files:
cp -a / etc / yum .repos.d / CentOS-Base.repo / etc / yum .repos.d / CentOS-Base.repo.bak
Download the new CentOS-Base.repo /etc/yum.repos.d/ file to the directory (not due to gpgkey dynamic adaptation, gpgcheck has been set to 0, turn off the check, please set to 1. To open and modify gpgkey address), execute the following command:
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.huaweicloud.com/repository/conf/CentOS-AltArch-7.repo
Execution yum yum clean all remove the existing cache.
Execution yum makecache (refresh the cache) or yum repolist all (all configurations can be used to view the file, it will automatically refresh the cache).