[root@localhost test]# yum repolist | grep epel
* epel: mirror.nyist.edu.cn
!epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,786
如果没有查询到epel源,执行以下命令
[root@localhost test]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
然后安装