centos更换阿里云的yum源

1.官网

Centos镜像
链接

2.使用示例

演示centos7

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

或者

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

原文地址:https://www.cnblogs.com/yaoliuyang/p/13581391.html