sweyhrich has asked for the wisdom of the Perl Monks concerning the following question:

I can get a list in CPAN of updates by typing "r" at the CPAN prompt. How can I get a list of the modules that are already installed on my system, ones that do not require updates?

Replies are listed 'Best First'.
Re: CPAN list?
by Zaxo (Archbishop) on Jan 31, 2004 at 21:12 UTC

    On your machine, type perldoc perllocal (not perllocale). You'll get an installation history.

    After Compline,
    Zaxo

      I've been using CPAN for years now and didn't know about that one. Great tip!
Re: CPAN list?
by borisz (Canon) on Jan 31, 2004 at 21:15 UTC
    try this:
    #!/usr/bin/perl use ExtUtils::Installed; my $i = ExtUtils::Installed->new(); my (@modules) = $i->modules(); for $m (sort @modules) { print "$m ", $i->version($m), $/; }
    or perldoc perllocal
    Boris
      Most humble thanks, oh wise ones. That worked!
Re: CPAN list?
by Hagbone (Monk) on Feb 01, 2004 at 21:52 UTC
    Not sure about the "... ones that do not require updates" part of your request (and am wondering if the replies have taken that into consideration as well), but FWIW, I use a script called Perl Diver that I grabbed years ago.

    It can be downloaded at:

    http://www.scriptsolutions.com/programs/free/perldiver/

    It gives quite a bit of info regarding your system beyond just module info, and is very easy to get running.