centos7 yum 切换成阿里源
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
4 最后可以安装yum-plugin-fastestmirror这个插件,让yum更快。