HomeInstallationAdding additional repositories in CentOS

Adding additional repositories in CentOS

The following yum command displays all the repositories available on your system. As you see below, it has three CentOS-6 repositories (base, extras, and updates). This doesn’t have EPEL enabled yet.

# yum repolist
repo id          repo name                   status
base             CentOS-6 - Base             6,294
extras           CentOS-6 - Extras               4
updates          CentOS-6 - Updates            830
repolist: 7,128

Everything that you need to install may not be available in the default OS repository. You will need to add/enable extra repositories.

Adding RPMForge Repository

For i386 / i686

rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm

For x86_64

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Adding Atomic repository in CentOS

To enable access to both the atomic yum repository use the following automated installer:

wget -q -O - http://www.atomicorp.com/installers/atomic | sh

Adding EPEL repository

EPEL stands for Extra Packages for Enterprise Linux.

First, you need to enable the EPEL repository on your system. You don’t need to configure this repository manually in your yum. Instead, download the following package and install it, which will enable the EPEL repository on your system.

http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm – Install this on your RHEL 6 (or CentOS 6)
http://mirrors.ispros.com.bd/fedora-epel/5/i386/epel-release-5-4.noarch.rpm - Install this on your RHEL 5 (or CentOS 5)

Download and install the appropriate RPM.

rpm -ivh epel-release-6-7.noarch.rpm

Done! Check the result of the Yum repolist to confirm.

Enabling additional CentOS repositories.

Edit the file /etc/yum.repos.d/CentOS-Base.repo and change enabled=0 to enabled=1 to enable a repository.

#additional packages that extend functionality of existing packages
name=CentOS-$releasever - Plus
#contrib - packages by Centos Users
name=CentOS-$releasever - Contrib

If you need any further assistance, feel free to contact Veeble support!!

Scroll to Top