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