CentOS7更改yum源到阿里源步骤
1.备份本地yum源
[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
2.获取阿里yum源配置文件
[root@localhost~]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3.更新yum缓存
[root@localhost ~]# yum makecache
4.查看当前yum源
[root@localhost~]# yum repolist