1)下载repo文件 

http://mirrors.aliyun.com/repo/Centos-7.repo

2)备份并替换系统的repo文件 
cp Centos-7.repo /etc/yum.repos.d/ 
cd /etc/yum.repos.d/ 
mv CentOS-Base.repo CentOS-Base.repo.bak 
mv Centos-7.repo CentOS-Base.repo

3)执行yum源更新命令 
yum clean all 
yum makecache 
yum update

配置完毕。

转载自http://blog.csdn.net/dylloveyou/article/details/53106577 ,仅供学习使用

相关文章:

  • 2021-06-11
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-09-04
  • 2022-12-23
相关资源
相似解决方案