#Step1:下载repository 没有wget命令 就用curl
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo`
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#Step2:安装epel基础组件源 没有wget命令 就用curl
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
curl -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
标签:epel,repo,mirrors,源为,repos,Centos7,yum,curl
From: https://blog.51cto.com/ratelcloud/7452247