First you need to add the CentOS repository, create this file using your favorite text editor:
[root@localhost ~]# vi /etc/yum.repos.d/centos.repoAdding the following contents, note the ’5′ has to be hardcoded to either 5 or 6 depending on your RHEL version.
[centos]
name=CentOS $releasever - $basearch
baseurl=http://ftp.heanet.ie/pub/centos/5/os/$basearch/
enabled=1
gpgcheck=0Once you’ve completed this step, you can now use “yum” to install CentOS packages.
Please note: The baseurl parameter above points to version 5 of the CentOS repos. If you use 6, change the URL accordingly.
