【From】 https://www.cnblogs.com/lpbottle/p/7875400.html

 

1. 备份原来的yum源

mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

 

2. 下载阿里云的CentOS-Base.repo 到/etc/yum.repos.d/

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

3. 清理缓存

sudo yum clean all

 

4. 生成新的缓存

sudo yum makecache

 

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2021-09-04
  • 2021-05-27
  • 2022-12-23
猜你喜欢
  • 2021-07-30
  • 2021-09-27
  • 2021-09-20
  • 2022-12-23
  • 2021-07-02
  • 2021-12-15
相关资源
相似解决方案