备份/etc/yum.repos.d/kylin_aarch64.repo
首先查看系统版本和CPU架构
[root@localhost ~]# cat /etc/kylin-release Kylin Linux Advanced Server release V10 (Tercel)[root@localhost ~]# uname -paarch64新建/etc/yum.repos.d/CentOS-Base.repo文件,或者直接
[root@localhost ~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo修改CentOS-Base.repo文件内容如下
# CentOS-Base.repo## The mirror system uses the connecting IP address of the client and the# update status of each mirror to pick mirrors that are updated to and# geographically close to the client. You should use this for CentOS updates# unless you are manually picking other mirrors.## If the mirrorlist= does not work for you, as a fall back you can try the# remarked out baseurl= line instead.##[base]name=CentOS-$releasever - Base - mirrors.aliyun.com#failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/8/BaseOS/$basearch/os/http://mirrors.aliyuncs.com/centos/8/BaseOS/$basearch/os/http://mirrors.cloud.aliyuncs.com/centos/8/BaseOS/$basearch/os/gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official#additional packages that may be useful[extras]name=CentOS-$releasever - Extras - mirrors.aliyun.com#failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/8/extras/$basearch/os/http://mirrors.aliyuncs.com/centos/8/extras/$basearch/os/http://mirrors.cloud.aliyuncs.com/centos/8/extras/$basearch/os/gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official#additional packages that extend functionality of existing packages[centosplus]name=CentOS-$releasever - Plus - mirrors.aliyun.com#failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/8/centosplus/$basearch/os/http://mirrors.aliyuncs.com/centos/8/centosplus/$basearch/os/http://mirrors.cloud.aliyuncs.com/centos/8/centosplus/$basearch/os/gpgcheck=1enabled=0gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official[PowerTools]name=CentOS-$releasever - PowerTools - mirrors.aliyun.com#failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/8/PowerTools/$basearch/os/http://mirrors.aliyuncs.com/centos/8/PowerTools/$basearch/os/http://mirrors.cloud.aliyuncs.com/centos/8/PowerTools/$basearch/os/gpgcheck=1enabled=0gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official[AppStream]name=CentOS-$releasever - AppStream - mirrors.aliyun.com#failovermethod=prioritybaseurl=http://mirrors.aliyun.com/centos/8/AppStream/$basearch/os/http://mirrors.aliyuncs.com/centos/8/AppStream/$basearch/os/http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/$basearch/os/gpgcheck=1gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official最后重新生成缓存
yum clean allyum makecache