[kwlug-disc] RedHat yum dependency handling

john at netdirect.ca john at netdirect.ca
Thu Feb 11 07:27:31 EST 2010


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. 

The person who did so may not have known about the "--disablerepo=" and "--enablerepo=" args to yum. 

You can do this without changing files by:

yum --enablerepo=base,updates install munin

When it comes up with the list of installs notice the repo each package is coming from. 

John Van Ostrand , CTO, co-CEO
Net Direct Inc.
564 Weber St. N. Unit 12
Waterloo, ON N2L 5C6
Ph: 519-883-1172
Fx: 519-883-8533
http://www.netdirect.ca


----- Original Message -----
From: Khalid Baheyeldin [kb at 2bits.com]
Sent: 02/10/2010 11:19 PM EST
To: KWLUG discussion <kwlug-disc at kwlug.org>
Subject: [kwlug-disc] RedHat yum dependency handling



So, I have a client with a RedHat server (RHEL5), and I wanted to install
Munin on it.

I first do:

#yum search munin

And find 2 packages (munin and munin-node).

That is an improvement from a few years ago, because rpmforge is configured
by default. No need to go and add repositories manually.

Or so I thought ...

I then told it, nicely, to install munin-node

# yum install munin-node

But, I am met by unresolved dependencies.

========
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: mirrors.netdna.com
 * base: mirrors.tummy.com
 * extras: mirror.san.fastserv.com
 * rpmforge: fr2.rpmfind.net
 * updates: mirrors.combinetworks.com
Excluding Packages in global exclude list
Finished
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package munin-node.noarch 0:1.2.5-2.el5.rf set to be updated
--> Processing Dependency: perl(Net::Server::Fork) for package: munin-node
--> Processing Dependency: perl(Net::SNMP) for package: munin-node
--> Processing Dependency: perl-Net-Server for package: munin-node
--> Finished Dependency Resolution
munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems
  --> Missing Dependency: perl(Net::SNMP) is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems
  --> Missing Dependency: perl(Net::Server::Fork) is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
munin-node-1.2.5-2.el5.rf.noarch from rpmforge has depsolving problems
  --> Missing Dependency: perl-Net-Server is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl(Net::SNMP) is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl(Net::Server::Fork) is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
Error: Missing Dependency: perl-Net-Server is needed by package
munin-node-1.2.5-2.el5.rf.noarch (rpmforge)
 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 program package-cleanup is found in the yum-utils package.
========

On a Debian/Ubuntu system, all the dependencies will be pulled
automatically,
and most things are already in the official repository (and all its
dependencies).

Is RedHat still not doing things that way, or am I missing something?
-- 
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://astoria.ccjclearline.com/pipermail/kwlug-disc_kwlug.org/attachments/20100211/fa8f5c68/attachment.html>
-------------- next part --------------
_______________________________________________
kwlug-disc_kwlug.org mailing list
kwlug-disc_kwlug.org at kwlug.org
http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org


More information about the kwlug-disc_kwlug.org mailing list