in reply to How to get a list of available modules from a cpan mirror

Assuming that CPAN is configured to use local, this will list all the installed and all the unavailable modules(uses modlist):
#!/usr/bin/perl BEGIN { $| = 1; } use strict; use warnings; use CPAN; use Term::ANSIColor::Print; my $print = Term::ANSIColor::Print->new(); my $d = shift @ARGV; foreach $d (CPAN::Shell->expand("Module", "/./")) { $print->bold_black( "\n\tmodule: ", $d->id), $print->dark_blue( "\tauthor: ", $d->cpan_userid), $print->bold_black("\tcurrent version: ", $d->cpan_version), $print->dark_green( "\tinstalled version: ", $d->inst_version), $print->dark_red( "\t", $d->inst_file); }