添加EPEL源

[root@localhost ~]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

[root@localhost ~]# rpm -ivh epel-release-latest-7.noarch.rpm

[root@localhost ~]# yum repolist ##检查是否已添加至源列表

OK,检查好已添加至源后就可以进行yum安装了