EPEL 是yum的一个软件源,里面包含了许多基本源里没有的软件了,但在咱们在使用epel时是须要安装它才能够了,EPEL,即Extra Packages for Enterprise Linux的简称,是为企业级Linux提供的一组高质量的额外软件包,包括但不限于Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Enterprise Linux (OEL),使用docker以前安装EPEL源。linux
在安装软件的时候,常常出现下载速度慢,下载不成功,以及企业版软件安装不上的状况,能够经过修改linux修改系统的yum源为阿里云并添加epel源的方法解决。docker
1 置阿里云yum源centos
切换到/etc/yum.repos.d/目录下缓存
cd /etc/yum.repos.dide
将CentOS-Base.repo 改成CentOS-Base.repo.backup阿里云
mv CentOS-Base.repo CentOS-Base.repo.backupcentos7
下载阿里云yum源到/etc/yum.repos.d/目录下.net
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo blog
2 centos7配置阿里云epel源ci
切换到/etc/yum.repos.d/目录下
cd /etc/yum.repos.d
下载epel源
wget https://mirrors.aliyun.com/repo/epel-7.repo
wget http://mirrors.aliyun.com/repo/epel-6.repo
3 清楚缓存
yum clean all && yum makecache
转载:https://blog.csdn.net/aiming66/article/details/78879996