<font size="2"><p>It looks like perl is not installed on the server. It also looks like someone changed the repo config as well. Look into /etc/yum.repos.d. Each file in there configures one or more repos. Each repo has a line like "enable=". I suspect the base and/or updates has been disabled by a previous admin. <br><br>The person who did so may not have known about the "--disablerepo=" and "--enablerepo=" args to yum. <br><br>You can do this without changing files by:<br><br>yum --enablerepo=base,updates install munin<br><br>When it comes up with the list of installs notice the repo each package is coming from. <br>John Van Ostrand , CTO, co-CEO<br>Net Direct Inc.<br>564 Weber St. N. Unit 12<br>Waterloo, ON N2L 5C6<br>Ph: 519-883-1172<br>Fx: 519-883-8533<br>http://www.netdirect.ca<br></p></font><hr><font size="2"><p><b>  From: </b>Khalid Baheyeldin [kb@2bits.com]<br><b>  Sent: </b>02/10/2010 11:19 PM EST<br><b>  To: </b>KWLUG discussion <kwlug-disc@kwlug.org><br><b>  Subject: </b>[kwlug-disc] RedHat yum dependency handling<br></p></font><br>
So, I have a client with a RedHat server (RHEL5), and I wanted to install<br>Munin on it.<br><br>I first do: <br><br>#yum search munin <br><br>And find 2 packages (munin and munin-node).<br><br>That is an improvement from a few years ago, because rpmforge is configured <br>
by default. No need to go and add repositories manually.<br><br>Or so I thought ...<br><br>I then told it, nicely, to install munin-node<br><br># yum install munin-node<br><br>But, I am met by unresolved dependencies.<br>
<br>========<font size="1"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Loaded plugins: fastestmirror</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Loading mirror speeds from cached hostfile</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * addons: <a href="http://mirrors.netdna.com">mirrors.netdna.com</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * base: <a href="http://mirrors.tummy.com">mirrors.tummy.com</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * extras: <a href="http://mirror.san.fastserv.com">mirror.san.fastserv.com</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> * rpmforge: <a href="http://fr2.rpmfind.net">fr2.rpmfind.net</a></span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> * updates: <a href="http://mirrors.combinetworks.com">mirrors.combinetworks.com</a></span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Excluding Packages in global exclude list</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Finished</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Setting up Install Process</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Resolving Dependencies</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--> Running transaction check</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">---> Package munin-node.noarch 0:1.2.5-2.el5.rf set to be updated</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--> Processing Dependency: perl(Net::Server::Fork) for package: munin-node</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">--> Processing Dependency: perl(Net::SNMP) for package: munin-node</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">--> Processing Dependency: perl-Net-Server for package: munin-node</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">--> Finished Dependency Resolution</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  --> Missing Dependency: perl(Net::SNMP) is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">  --> Missing Dependency: perl(Net::Server::Fork) is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">  --> Missing Dependency: perl-Net-Server is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Error: Missing Dependency: perl(Net::SNMP) is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Error: Missing Dependency: perl(Net::Server::Fork) is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Error: Missing Dependency: perl-Net-Server is needed by package munin-node-1.2.5-2.el5.rf.noarch (rpmforge)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> You could try using --skip-broken to work around the problem</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> You could try running: package-cleanup --problems</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">                        package-cleanup --dupes</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">                        rpm -Va --nofiles --nodigest</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">The program package-cleanup is found in the yum-utils package.</span></font><br>
========<br clear="all"><br>On a Debian/Ubuntu system, all the dependencies will be pulled automatically,<br>and most things are already in the official repository (and all its dependencies).<br><br>Is RedHat still not doing things that way, or am I missing something?<br>
-- <br>Khalid M. Baheyeldin<br><a href="http://2bits.com">2bits.com</a>, Inc.<br><a href="http://2bits.com">http://2bits.com</a><br>Drupal optimization, development, customization and consulting.<br>Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra<br>
Simplicity is the ultimate sophistication. --   Leonardo da Vinci<br>