Tuesday, January 15, 2008

Installing rrdtool using yum

Between apt-get, up2date, yum or smart and a few more, which one is the best?. Actually I dont have favorite package manager. I just use whatever the server already has on board. If on Ubuntu, apt-get is more than enough. Right now I'm working on Centos 5 that need rrdtool package. By default, the yum repository configuration on Centos 5 does not have rrdtool in it. Thanks to dag wieers for his remarkable effort. Although he had some issue with yum developers previously. Nothing much I can help over there, so back to work.

Well, now create a file called dag.repo in /etc/yum.repos.d/ just like below

[root@yoebuntu yum.repos.d]# cat 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@yoebuntu yum.repos.d]#

and then
[root@yoebuntu yum.repos.d]# yum install rrdtool

reference

30 comments:

kapla.hodot said...

oit.... 'more' link tokleh guna ler...

Anonymous said...

Hey thanks for that.... Centos needs to get rrdtool in!

yoe said...

thanks for pointing that out hi hi. guess its ok now.

And yes, at least get the configuration for dag's repo in.

Anonymous said...

hello..thanks for the tip but i've tried doing what you instructed but for some reason it doesn't work, im using centOS 5 too, i don't know if it matters but im just using vmware, everytime i try yum install rrdtool, there comes an error like metadata does not match checksum and http://apt.sw.....no more mirrors to try..

can you give me a step by step tutorials in doing this?

im trying to install cacti..

yoe said...

shikakage..you might wanna try to manually browse to the dag's repository. For centos 5, it should point to http://apt.sw.be/redhat/el5/en/i386/dag/RPMS/
(you will find rrdtool-1.2.23-1.el5.rf.i386.rpm in there) and the try the url for signature file as well, http://dag.wieers.com/rpm/packages/
RPM-GPG-KEY.dag.txt
if you can browse to both of em, then it should work. I dont have vmware installed to test it out, but i doubt it will gives different result.

Anonymous said...

i did what you told me sir, but i changed the baseurl with http://apt.sw.be/redhat/el5/en/i386/dag/RPMS/

but the error now is

http://apt.sw.be/redhat/el5/en/i386/dag/RPMS/repodata/repomd.xml : [errno 14] HTTP error 404: Not Found trying another mirror. Error:cannot open/read repomd.xml file for repository: dag

yoe said...

try to put the baseurl without RPMS inline http://apt.sw.be/redhat/el5/en/i386/dag/
hope it works.

Anonymous said...

i've already tried that, but another error comes up..HTTP not found..

yoe said...

are you using any proxy? If not, try yum clean all, and try yum install again. I'm sorry but i really have no idea what went wrong. ermm or you might want to try other method(eg. apt-get) to install rrdtool. Please refer here "http://dag.wieers.com/rpm/FAQ.php#B2"
OR you can always try to download and install the tarball itself.

Anonymous said...

thanks a bunch sir, im sorry for the trouble, i'll tell you how it goes..but what do i do if i am using proxy? i tried to install it manually but the dependencies are killing me, thanks for the help..really appreciate it..

Anonymous said...

Thanks for your help on this installation i was stuck.... God bless you.

I am Angel from Rwanda

Lance said...

Great job, worked like a charm.

Matt said...

I tried this and it seemed to be working but then it failed with the following:

---> Package rrdtool.i386 0:1.2.30-1.el4.rf set to be updated
--> Running transaction check
--> Processing Dependency: perl(RRDs) for package: rrdtool
--> Processing Dependency: perl(RRDp) for package: rrdtool
--> Finished Dependency Resolution
Error: Missing Dependency: perl(RRDs) is needed by package rrdtool
Error: Missing Dependency: perl(RRDp) is needed by package rrdtool

Any suggestions?

Thanks

-Matt

yoe said...

mm try to edit you dag.repo file and add "includepkgs=perl-rrdtool" without quote to the last line of the file.. and then re-run yum install again.

Anonymous said...

Hello there,
Thanks for this quick howto! I did everything like you wrote and stuck checking new rrdtool installation:

# cd /usr/share/rrdtool/examples/
# ./stripes.pl
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

# rpm -q fontconfig
fontconfig-2.4.1-7.el5

yoe said...

Sorry for I am jobless now and dont have resources to test it out. But googling around suggests that rrdtool requires certain type of fonts to work. Majority of users with similar problem sort it out by installing one of the font. Try one of the following:

yum install dejavu-fonts

if it fails, try
yum install dejavu-lgc-fonts.noarch

Anonymous said...

Yep, that helps! Thanks a lot!

Unknown said...

That helps alot! Thank you so much

ITExam_Blog said...

Thanks
Its working fine

Unknown said...

I got the following error:
http://apt.sw.be/redhat/el5/en/i386/dag/repodata/primary.xml.gz: [Errno 12] Timeout: urlopen error timed out
Trying other mirror.
Error: failure: repodata/primary.xml.gz from dag: [Errno 256] No more mirrors to try.

yoe said...

William,
Looks like you probably have trouble accessing the repo via the internet. Please check your connection. And mm
actually this page is a bit outdated, I mean it should be much easier now. The repo has been collaborate into one big project called rpmforge. Please try here for proper setup of yum, I always use this step as a Centos post installation. Alternatively, you can always refer to here to use the repo. Lastly, if you're new to the repo, please go thru the FAQ at DAG website. Thanks.

yoe

James R. Marcus said...

Thanks!

Anonymous said...

You rock!

Anonymous said...

Top banana!!!!!!

Anonymous said...

It works. Thanks a lot

Anonymous said...

Great job! Thanks a lot.

generic cialis 20mg said...

Interesting article, added his blog to Favorites

Anonymous said...

You guys rule! Thanks for the quick rerdtool install.

Anonymous said...

Thank you for sharing your knowledge!

Anj said...

Hi,

Thanks you solved my problem with fonts not found..

Installing the dejavu-lgc-fonts.noarch package solved my issue.

- Anj