Home > Server > Install and use EPEL repo Centos 5

Install and use EPEL repo Centos 5

[update 2012 – june]

Install EPEL – Extra Packages for Enterprise Linux repository on Centos 5.8

su –

cd /usr/src

wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

rpm -i  epel-release-5-4.noarch.rpm

install EPEL  ed EPEL-5   RPM-GPG-KEY using mirror..fraunhofer.de

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL http://mirror.fraunhofer.de/download.fedora.redhat.com/epel/RPM-GPG-KEY-EPEL

wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-5 http://mirror.fraunhofer.de/download.fedora.redhat.com/epel/RPM-GPG-KEY-EPEL-5

Disable the epel.repo

This is generally a good idea. Edit the /etc/yum.repos.d/epel.repo file and epel-testing.repo file and change anywhere that it says ‘enabled=1′ to be ‘enabled=0′

using sed
sed replace string 1 ‘enabled=1’ with string 2 ‘enabled=0’ in file epel.repo

su -
cd /etc/yum.repos.d
sed -i -e 's@enabled=1@enabled=0@' epel.repo

to install a packet use –enablerepo=epel.   ex:

yum –enablerepo=epel install phpMyAdmin3

list of epel repo

yum --enablerepo=epel list | egrep 'epel'


EPEL Mirror Manager

The newest version of ‘epel-release’ for EL5

Yum troubleshooting

When yum hangs on “Setting up repositories”

rpm –rebuilddb
rpm –initdb

yum clean all

an update with limited space:

yum check-update | sed -n "4,\$p" | awk '{print $1}' | xargs -n 1 yum -y update
  1. Non c'è ancora nessun commento.
  1. No trackbacks yet.

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...

%d blogger cliccano Mi Piace per questo: