[Yum] a dependency is not being detected?

Fulko Hew fulko.hew at gmail.com
Wed Feb 10 15:46:17 UTC 2010


I've been perplexed by yum....

I have a package (rpm) I've created.  One if its dependencies is
'perl-SNMP-Session'. When I build my package the process reports
(trimmed for brevity):

Requires: /bin/sh /usr/bin/perl bash chkconfig coreutils grep
initscripts mysql-server perl >= 0:5.002 perl(AutoLoader)
...
perl(SNMP_Session)
...

To install, I use: 'yum install --nogpgcheck MyPackage.rpm'

On Fedora boxes (example F12) it detects the missing dependency
and also installs perl-SNMP-Session, but on an RHEL 5.4 box it
doesn't report the missing dependency.

Note: The RHEL 5.4 box does have the mrtg package installed,
and that package has a copy of the relevant files I need,
(but the mrtg package doesn't install them into a location that Perl can
find.)

# rpm -qa --filesbypkg | grep SNMP_Session
mrtg     /usr/lib/mrtg2/SNMP_Session.pm

Using the 'verbose' flag during yum install, it says:

looking for ('perl(SNMP_Session)', None, (None, None, None)) as a
requirement of MyPackage.noarch 0-1.0-5 u

but:  'yum list "*SNMP_Session*"' reports it as 'available', _not_
'installed':

Available Packages:
perl-SNMP_Session.noarch     1.12-3.el5.1    epl

So the question is...
if its not installed, why isn't it being required/found as a missing
dependency?

TIA
Fulko
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum/attachments/20100210/c885b093/attachment.htm>


More information about the Yum mailing list