要想安裝EPEL,咱們先要下載EPEL的rpm安裝包。php
首先經過如下命令確認你的CentOS 版本linux
$ cat /etc/RedHat-release CentOS release 6.6
如今從上面的地址下載CentOS 版本所對應的EPEL 的版本nginx
$ wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
經過如下命令安裝EPEL 軟件包centos
$ sudo rpm -ivh epel-release-6-8.noarch.rpm
安裝好EPEL 源後,用yum 命令來檢查是否添加到源列表get
# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirrors.vonline.vn * epel: buaya.klas.or.id * extras: centos-hn.viettelidc.com.vn * updates: mirrors.fibo.vn repo id repo name status base CentOS-6 - Base 6,381 epel Extra Packages for Enterprise Linux 6 - x86_64 10,023 extras CentOS-6 - Extras 13 nginx nginx repo 47 updates CentOS-6 - Updates 1,555 repolist: 18,019
EPEL已經在repo 後列出,而且顯示提供了上萬個軟件包,因此EPEL 已經安裝到你的CentOS了。it
EPEL源的配置安裝到了 /etc/yum.repos.d/epel.repo 文件。ast
6. 安裝phpmyadmintest
如今來試一下從EPEL 獲取軟件包軟件
$ sudo yum install phpmyadmin