centos7 yum  切换成阿里源

本文介绍如何快速把centos7的yum源切换成阿里的。

1、首先执行命令。

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

 

2、清空yum 缓存

yum clean all

 

3、执行yum  makecache

 

centos7 yum 切换成阿里源

 

4 最后可以安装yum-plugin-fastestmirror这个插件,让yum更快。

相关文章:

  • 2021-05-28
  • 2021-11-15
  • 2021-10-25
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2022-02-04
  • 2022-01-16
猜你喜欢
  • 2021-10-02
  • 2021-09-27
  • 2022-12-23
  • 2021-12-15
  • 2021-12-06
  • 2021-05-27
  • 2022-12-23
相关资源
相似解决方案