Centos-7修改yum源为国内的yum源

国内也就是ali 与 网易

以centos7为例 ,以 修改为阿里的yum源

1、备份本地yum源

2、获取阿里yum源配置文件

3、更新cache

4、更新cache

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

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

yum makecache

yum -y update
正因为来之不易,所以才有了后来的倍加珍惜。
原文地址:https://www.cnblogs.com/jjxhp/p/10670752.html