How to install Munin-node on RHEL6

Munin-node is not available per default on RHEL6 servers. But luckily, somebody has made a mirror which contains many nice applications, including the munin packages we want.

rpm -Uvh http://ftp.uninett.no/linux/epel/6/x86_64/epel-release-6-8.noarch.rpm

yum install perl-XML-SAX

yum install munin-node

And voila! 🙂

perl-XML-SAX has to be installed first due to dependency issues.

Edited 7.march 2013, updated URL`s

 

Yum on Red Hat 5 hangs when using proxy

I had a machine that started hanging when running yum update on it. And the only way to actually stop yum then was to kill the process from another shell, pretty strange.

I noticed that it was trying to look up and old proxy server which was not in use anymore, the machine itself got online without issues on other services but then i realised that the file “/etc/sysconfig/rhn/up2date” had a entry for yum proxy settings.

It is also worth checking all files in your “/etc/yum” folder and make sure that none of your repo files have dedicated proxy settings defined since that will override anything from up2date.

When commenting out that proxy setting, yum started behaving again.

Yum gives depsolving problems for perl-IO-Compress packages

When doing yum update/upgrade etc you can get errors about dependency problems with perl-IO-Compress.

hostname(R):/root>yum update perl-Compress-Raw-Bzip2 perl-Compress-Raw-Zlib
Loaded plugins: downloadonly, protectbase, rhnplugin, security
13 packages excluded due to repository protections
Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
–> Running transaction check
–> Processing Dependency: perl(Compress::Raw::Bzip2) = 2.024 for package: perl-IO-Compress
—> Package perl-Compress-Raw-Bzip2.x86_64 0:2.031-1.el5.rf set to be updated
–> Processing Dependency: perl(Compress::Raw::Zlib) = 2.024 for package: perl-IO-Compress
—> Package perl-Compress-Raw-Zlib.x86_64 0:2.030-1.el5.rf set to be updated
–> Finished Dependency Resolution
perl-IO-Compress-2.024-1.el5.rf.noarch from installed has depsolving problems
–> Missing Dependency: perl(Compress::Raw::Bzip2) = 2.024 is needed by package perl-IO-Compress-2.024-1.el5.rf.noarch (installed)
perl-IO-Compress-2.024-1.el5.rf.noarch from installed has depsolving problems
–> Missing Dependency: perl(Compress::Raw::Zlib) = 2.024 is needed by package perl-IO-Compress-2.024-1.el5.rf.noarch (installed)
Error: Missing Dependency: perl(Compress::Raw::Bzip2) = 2.024 is needed by package perl-IO-Compress-2.024-1.el5.rf.noarch (installed)
Error: Missing Dependency: perl(Compress::Raw::Zlib) = 2.024 is needed by package perl-IO-Compress-2.024-1.el5.rf.noarch (installed)
You could try using –skip-broken to work around the problem
You could try running: package-cleanup –problems
package-cleanup –dupes
rpm -Va –nofiles –nodigest

The solution is a bit hack`ish but as long as it solves the problem 🙂

Try to removing the package “perl-IO-Compress”, it will then most likely remove some other packages too but you should be able to install them again afterwards since they then will use updated packages for dependencies etc.

yum remove perl-IO-Compress