How to add more repositories to YUM

Make your yum more robust by adding more repositories like DAG, UPDATE and RPMforge. For adding extra repositories to yum, please do the following.
cd /etc/yum.repos.d
vi dag.repo // the add the following lines in that file//
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
rpm –import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
After this save this file and run the following command
yum check-update
Category: Tips for linux
