How-to : Installing RRDTool on centos 5 using yum

Yes, I know CentOS 5 does not come with a repository that holds valid redhat style rpm’s for rrdtool. So here is how we fix that. We are going to echo to a new file the repo information you will need to allow yum to install rrdtool.

We create a file called dag.repo in /etc/yum.repos.d/ by running the echo cmd below. Just copy and past it in to your putty

Yes, I know CentOS 5 does not come with a repository that holds valid redhat style rpm’s for rrdtool. So here is how we fix that. We are going to echo to a new file the repo information you will need to allow yum to install rrdtool.

We create a file called dag.repo in /etc/yum.repos.d/ by running the echo cmd below. Just copy and past it in to your putty window and hit [enter] once. Then let’s cat the file to make sure it has saved correctly.


echo "[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el\$releasever/en/\$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1" > /etc/yum.repos.d/dag.repo

Now run

[root@localhosts]#cat /etc/yum.repos.d/dag.repo
And you will see this

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

Now run
[root@localhosts]# yum install rrdtool

This is also good for

awstats
cacti
bandwidth
cfengine
ClamAV
Claws Mail
darkstat
dante
devilspie
dnstop
dvd95
dvdrip
etherape
flash-plugin
fuse
gkrellm
iperf

Another good place to get rrdtool for cent if you just want to download the RPM’s and go..
RRDTOOL

29 thoughts on “How-to : Installing RRDTool on centos 5 using yum”

  1. not working..

    [root@ns21 yum.repos.d]# yum install rrdtool \Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: mirror.nus.edu.sg
    * base: mirror.nus.edu.sg
    * extras: mirror.nus.edu.sg
    * updates: mirror.nus.edu.sg
    http://apt.sw.be/redhat/el%5C5/en/%5Ci386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: dag. Please verify its path and try again

  2. root@tempdsbox src#cat /etc/yum.repos.d/dag.repo
    [dag]
    name=Dag RPM Repository for Red Hat Enterprise Linux
    baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
    gpgcheck=1
    gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
    enabled=1
    root@tempdsbox src# yum install rrdtool
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * addons: mirror.ubiquityservers.com
    * base: mirror.rackspace.com
    * extras: mirror.team-cymru.org
    * updates: mirrors.rit.edu
    Segmentation fault
    root@tempdsbox src#

  3. Hi ,
    EPEL is a repository that provide a lot of well tested rpm files for Red Had distributions . This repo also provides the rrdtool , so installation with the usual method vs ” yum install rrdtool ” was verry easy .

  4. I try follow from your script it’s dose not work.
    I try script below

    [dag]
    name=Dag RPM Repository for Red Hat Enterprise Linux
    baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
    gpgcheck=1
    gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
    enabled=1

    it diff by
    1. delete echo ”
    2. delete ” > /etc/yum.repos.d/dag.repo

    and follow your step
    It’s work!
    Thank you sanderson and this link below
    http://www.crucial.com.au/blog/2009/11/20/how-to-install-rrdtool-using-yum/

  5. -SWEETDEMON

    The idea is to echo to a file the following, So if your linux system need to be configured fast the full cmd including the echo was there for you to cut and paste to a command terminal. But I suppect you got in none the less so enjoy rrdtool.

    Just Fyi for the resent *nix users, echo and pipe will place text to a file and cat reads it back out.

    Do not try to cat before you echo and pipe.(smiles)

  6. in latest Centos 5, just open and add above to file:
    #nano /etc/yum.repos.d/CentOS-Base.repo

    then run:
    #yum install rrdtool

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.