1.跳转到镜像源文件夹
cd /etc/yum.repo.d
2.备份系统镜像源文件
ps:要养成修改系统文件之前做文件备份的好习惯
cp kylin_aarch64.repo kylin_aarch64.repo.bak
3.添加新的镜像源
vi kylin_aarch64.repo
[ks10-adv-cdrom] name = Kylin Linux Advanced Server 10 - cdrom baseurl = file:///run/media/root/Kylin-Server-10 gpgcheck = 0 enabled = 1 baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/base/aarch64/ gpgcheck = 0 enabled = 1 [ks10-adv-os] name = Kylin Linux Advanced Server 10 - Os baseurl = http://archive2.kylinos.cn/rpm/kylin/production/KY-KY10-GFB-aarch64/custom/kylin-server/KY10-GFB-aarch64-2204/ #baseurl = http://update.cs2c.com.cn:8080/NS/V10/V10SP1/os/adv/lic/base/$basearch/ gpgcheck = 0 enabled = 1
4.清理缓存
yum clean all
5.创建新的缓存
yum makecache
操作完就可以下载需要的内容了~