备份/etc/yum.repos.d/kylin_aarch64.repo
首先查看系统版本和CPU架构
[root@localhost ~]# cat /etc/kylin-release
Kylin Linux Advanced Server release V10 (Tercel)
[root@localhost ~]# uname -p
aarch64新建/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=priority
baseurl=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=1
gpgkey=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=priority
baseurl=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=1
gpgkey=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=priority
baseurl=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=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[PowerTools]
name=CentOS-$releasever - PowerTools - mirrors.aliyun.com
#failovermethod=priority
baseurl=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=1
enabled=0
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official
[AppStream]
name=CentOS-$releasever - AppStream - mirrors.aliyun.com
#failovermethod=priority
baseurl=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=1
gpgkey=http://mirrors.aliyun.com/centos/RPM-GPG-KEY-CentOS-Official最后重新生成缓存
yum clean all
yum makecache
该文描述了在aarch64架构的KylinLinuxV10系统中,如何备份原有的yum源,并替换成阿里云的CentOS-8镜像源。通过创建或下载CentOS-Base.repo文件,然后修改内容设置多个阿里云镜像地址,确保gpgkey的验证,并最后执行yum缓存清理和更新。
9349

被折叠的 条评论
为什么被折叠?



