How-to : Installing RRDTool on centos 5 using yum

On October 5, 2009, in How-to, by Cubert aka (Cube Dweller)

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

Tagged with:
 

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

  1. max says:

    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. Anonymous says:

    lovely

  3. Anonymous says:

    Excellent!!!

  4. JG says:

    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#

  5. JG says:

    I ran it again to show a buddy, worked like a champ!

  6. kostas says:

    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 .

  7. Preeti says:

    That works perfect .. Thanks a lot!

  8. Sandro says:

    Works perfect to me too. Thanks!!!!

  9. Simon Hova says:

    Very good, worked for me.

  10. Miranda Weasley says:

    Thanks!!!

  11. Yogev says:

    Works like a charm.

  12. SWEETDEMON says:

    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/

  13. Cubert says:

    -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)

  14. Ranilson says:

    Ok, It works!! My SO is a CENTOS 5.6

    thanks

  15. Cubert says:

    It also works on CentOS 6 The repo’s are kept up to date across OS verions.

  16. Bernard says:

    it works on centos 5.6 also! thanks dude!

  17. Indonesia says:

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

    then run:
    #yum install rrdtool

  18. Thiagotrm says:

    Works for me too. Very well!

  19. Michal says:

    Works like a charm! Thank you sir, very helpful

  20. damiral says:

    super!!!

  21. […] How-to: Installing RRDTool on Centos 5 using Yum, Cube Dweller. October 05, 2009. […]

  22. rajesh thakur says:

    Thanks dude… it worked for me also…

  23. elemenopi says:

    thanks on this men! it works!

  24. I am glad everyone is getting the quick and easy answer to this common issue.

    Party on Garth!!

    😎

  25. Gobi says:

    works….good

  26. wawa says:

    its work thank you…..

  27. Zahid says:

    It worked !!!

    Thanks for the contributor.

Leave a Reply