1.查看系统信息:
cat /etc/system-release
NeoKylin Linux Advanced Server release V7Update6 (Chromium)
2.下载repo文件
curl http://mirrors.aliyun.com/repo/Centos-7.repo > /etc/yum.repos.d/CentOS-Base.repo
3.根据版本和arch修改repo文件
sed -i ‘s/$releasever/7/g’ /etc/yum.repos.d/CentOS-Base.repo
sed -i ‘s/$basearch/x86_64/g’ /etc/yum.repos.d/CentOS-Base.repo
4.更新缓存
yum clean all
yum makecache
5.使用yum
yum update
转载请注明:王杭州的个人网页 » 麒麟系统配置yum源 [zz]