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.
1 2 3 4 5 6 |
# 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.
Contents
Adding RPMForge Respository
For i386 / i686
1 |
rpm -Uhv <a class="external free" href="http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm" rel="nofollow">http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm</a> |
For x86_64
1 |
rpm -Uhv <a class="external free" href="http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm" rel="nofollow">http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm</a> |
Adding Atomic repository
To enable access to both the atomic yum repository use the following automated installer:
1 |
wget -q -O - <a class="external free" href="http://www.atomicorp.com/installers/atomic" rel="nofollow">http://www.atomicorp.com/installers/atomic</a> | 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.
1 |
<a class="external free" href="http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm" rel="nofollow">http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/i386/epel-release-6-7.noarch.rpm</a> – Install this on your RHEL 6 (or CentOS 6) |
1 |
<a class="external free" href="http://mirrors.ispros.com.bd/fedora-epel/5/i386/epel-release-5-4.noarch.rpm" rel="nofollow">http://mirrors.ispros.com.bd/fedora-epel/5/i386/epel-release-5-4.noarch.rpm</a> - Install this on your RHEL 5 (or CentOS 5) |
Download and install the appropriate RPM.
1 |
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.
1 2 3 4 5 6 7 8 |
#additional packages that extend functionality of existing packages [centosplus] name=CentOS-$releasever - Plus mirrorlist=<a class="external free" href="http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus" rel="nofollow">http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus</a> #baseurl=<a class="external free" href="http://mirror.centos.org/centos/$releasever/centosplus/$basearch/" rel="nofollow">http://mirror.centos.org/centos/$releasever/centosplus/$basearch/</a> gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 |
1 2 3 4 5 6 7 8 |
#contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=<a class="external free" href="http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib" rel="nofollow">http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib</a> #baseurl=<a class="external free" href="http://mirror.centos.org/centos/$releasever/contrib/$basearch/" rel="nofollow">http://mirror.centos.org/centos/$releasever/contrib/$basearch/</a> gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 |
If you need any further assistance, feel free to contact Veeble support!!