linux 配置阿里云yum库

备份当前yum库

mv /etc/yum.repos.d /etc/yum.repos.d.backup4comex

新建yum源配置目录

mkdir /etc/yum.repos.d

设置阿里yum镜像

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

重建缓存 yum clean all yum makecache

原文地址:https://www.cnblogs.com/Nanaya/p/10728441.html