how to use rpm module instead of installed source
    Richard Siddall 
    richard.siddall at elirion.net
       
    Mon Dec 17 16:59:13 GMT 2007
    
    
  
Ugo Bellavance wrote:
>     From MailScanner -V output, I get this:
> 
> 0.53    Net::DNS
> 
> But I have perl-Net-DNS-0.59-1.el3.rf installed.
> 
> How can I tell my system to use the rpm instead of the source-installed 
> 0.53?
I'm guessing that Net::DNS 0.53 was installed earlier in the @INC Perl 
search path than the RPM version, 0.59, so MailScanner finds it first.
	perl -V
will show you the @INC search path.
I don't know of an easy way of deleting a Perl module that was installed 
with cpan.  I'd probably do:
	locate Net/DNS
and then move all the matches I believed were part of the cpan 
installation to a directory outside the Perl search path.
BTW, you can use rpm to determine if the matched file was installed by rpm:
	rpm -qf /usr/lib/perl5/site_perl/5.8.5/Net/DNS.pm
will tell you which RPM the file was installed by.
Regards,
	Richard Siddall
    
    
More information about the MailScanner
mailing list