Monday, April 21, 2014
How to install & configure epel repo on Centos 6.x
How to install & configure epel repo on Centos 6.x (64 Bit):
Download epel RPM:
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
Install epel rpms:
rpm -ivh epel-release-6-8.noarch.rpm
rpm -ivh remi-release-6.rpm
Update rpms if previously installed:
sudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
We should see some additional repo definitions under the /etc/yum.repos.d directory.
# ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo
/etc/yum.repos.d/epel.repo
/etc/yum.repos.d/epel-testing.repo
/etc/yum.repos.d/remi.repo
Enable the remi repository:
Open the /etc/yum.repos.d/remi.repo repository file using a text editor of your choice:
vi /etc/yum.repos.d/remi.repo
Edit the [remi] portion of the file so that the enabled option is set to 1.
name=Les RPM de remi pour Enterprise Linux $releasever - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/$releasever/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/$releasever/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
Save and exit.
yum -y update
yum -y upgrade
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment