Yum installing from EPEL repository on CentOS
EPEL stands for Extra Packages for Enterprise Linux. It contains open source projects compiled up for many versions of the Red Hat distribution, like CentOS.
Follow these instructions to allow yum install to select packages from the EPEL repository.
First we need to find out a few things about our system:
[root@mrn ~]# cat /etc/issue CentOS release 6.3 (Final) Kernel \r on an \m [root@mrn ~]# uname -a Linux mrn 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/LinuxWe now know that we are using major version number 6 on x86_64. It’s very likely that we will need to update our security keys in order to install the latest EPEL repository RPM, so let’s do that first. Navigate to http://dl.fedoraproject.org/pub/epel/ and get the
RPM-GPG-KEY-EPEL
file for your major version number, in my case RPM-GPG-KEY-EPEL-6
.
wget http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6Move it into position:
mv RPM-GPG-KEY-EPEL-6 /etc/pki/rpm-gpg/And import:
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6Keys are in, so lets get a copy of the latest catalogue. Navigate to http://download.fedoraproject.org/pub/epel/6/x86_64/repoview/epel-release.html where 6 is the operating system major number and x86_64 is the platform architecture. You can go from http://download.fedoraproject.org/pub/epel/ if it’s simpler. There will be a link to the latest version of the
epel-release-6-?.noarch
. Install it.
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpmNow check that it has worked:
[root@mrn tmp]# yum repolist repo id repo name status base CentOS-6 - Base 6,381 epel Extra Packages for Enterprise Linux 6 - x86_64 9,341 extras CentOS-6 - Extras 13 updates CentOS-6 - Updates 1,023 repolist: 16,758Finally, list all the packages available at that repository:
yum –disablerepo="*” –enablerepo="epel” list available
No feedback yet
Form is loading...