1.首先备份原来的cent os官方yum源

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2.获取阿里的yum源覆盖本地官方yum源

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

3.清理yum缓存,并生成新的缓存

yum clean all
yum makecache

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-06-03
  • 2021-12-06
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-09-27
  • 2022-12-23
相关资源
相似解决方案