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 Respository

For i386 / i686

rpm -Uhv

For x86_64

rpm -Uhv

Adding Atomic repository

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

wget -q -O - | sh

Adding EPEL repository

EPEL stands for Extra Packages for Enterprise Linux.

First, you need to enable 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. – Install this on your RHEL 6 (or CentOS 6) - 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 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!!