标签:国内 常见 缓存 wiki get lock ror 软件 repo
将yum源设置为国内yum源,可以提升软件包安装和更新的速度,同时避免一些常见软件版本无法找到。阿里云的yum源:
Centos5: http://mirrors.aliyun.com/repo/Centos-5.repo
Centos6: http://mirrors.aliyun.com/repo/Centos-6.repo
Centos7: http://mirrors.aliyun.com/repo/Centos-7.repo
网易:
Centos5: http://mirrors.163.com/.help/CentOS5-Base-163.repo
Centos6: http://mirrors.163.com/.help/CentOS6-Base-163.repo
Centos7: http://mirrors.163.com/.help/CentOS7-Base-163.repo
中科大的yum源:
Centos5: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
Centos6: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
Centos7: https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3
1.首先备份CentOS-Base.repo
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2.下载对应版本的CentOS-Base.repo, 放入/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo Centos6: http://mirrors.aliyun.com/repo/Centos-6.repo
3、清理缓存
yum clean all
yum makecache
标签:国内 常见 缓存 wiki get lock ror 软件 repo
原文地址:https://blog.51cto.com/90856/2528521