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

I regularly have used, under CYGWIN/WINDOWS Perl, perl -MCPAN -e 'CPAN::Shell->notest(install => CPAN::Shell->r)' to update all of my installed modules. There is currently a problem with how the BZ2 module works with the CYGWIN/WINDOWS Perl. How can I exclude the BZ2 module from the above (or something similar) from my statement above? Thanks in advance.

Replies are listed 'Best First'.
Re: MCPAN Exclude
by Corion (Patriarch) on Sep 27, 2010 at 16:35 UTC

    The autobundle command of CPAN will create a file that lists all installed modules. If you then edit that file and re"install" that bundle, CPAN will then update all installed modules. Also see App::cpanoutdated respectively cpan-outdated, which should make possible what you want by doing:

    cpan-outdated | grep -v -i bz2 | xargs cpan -i # or, if you have App::cpanminus cpan-outdated | grep -v -i bz2 | xargs mcpan
Re: MCPAN Exclude
by Anonymous Monk on Sep 27, 2010 at 16:30 UTC
    presumably you would filter the output of CPAN::Shell->r