Saturday, 26 October 2013

Install Fedora EPEL repository on CentOS Linux

In my this blog i will describe how to configure a CentOS based system to use Fedora EPEL repository and third party remi package repository and As advantage they provide much more current versions of popular applications.

Install the third party or extra repositories:
Now download some RPM files that contain the additional Yum repository definitions. In the below example we are using 64 bit version that work with our server.

Download  Requires RPM files for Centos 5.X:

# wget http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5.4.noarch.rpm

# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

# sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

Download  Requires RPM files for Centos 6.X:

# 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

# sudo rpm -Uvh remi-release-6*.rpm eplel-release-6*.rpm

Once Installed we can see some additional repository definitions under the /etc/yum.repos.d directory.

# ls -l  /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:
remi repository provides a variety of up-to-date packages that are useful for web based services. That means it's good to enable the remi repositories by default.
Now open the /etc/yum.repos.d/remi.repo repository file using your favourite text editor:

# vim /etc/yum.repos.d/remi.repo

Now edit the [remi] portion of the file so that the enabled option is set to 1. This will enable the remi repository.

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

Now we will have a larger array of yum repositories.

For any query please feel free to contact me my email ID is sashwatkatore@gmail.com.

2 comments:

  1. Thank you sir for visiting my site. In my this article i have described that how to integrate third party repository with CentOS for updated versions of popular applications.

    ReplyDelete