How can I de-install a Perl module installed via `cpan`?
Install App::cpanminus from CPAN (use: cpan App::cpanminus for this). Type cpanm –uninstall Module::Name (note the “m“) to uninstall the module with cpanminus. This should work.
Install App::cpanminus from CPAN (use: cpan App::cpanminus for this). Type cpanm –uninstall Module::Name (note the “m“) to uninstall the module with cpanminus. This should work.
The easiest method I have found so far is to say wget -O- http://cpanmin.us | perl – -l ~/perl5 App::cpanminus local::lib eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib` echo ‘eval `perl -I ~/perl5/lib/perl5 -Mlocal::lib`’ >> ~/.profile echo ‘export MANPATH=$HOME/perl5/man:$MANPATH’ >> ~/.profile This assumes your profile is named .profile, you may need to change that to be .bash_profile, … Read more
This is answered in the Perl FAQ, the answer which can be quickly found with perldoc -q installed. In short, it comes down to using ExtUtils::Installed or using File::Find, variants of both of which have been covered previously in this thread. You can also find the FAQ entry “How do I find which modules are … Read more
Try setting PERL_MM_USE_DEFAULT like so: PERL_MM_USE_DEFAULT=1 perl -MCPAN -e ‘install My::Module’ It should make CPAN answer the default to all prompts.
An alternative method to using upgrade from the default CPAN shell is to use cpanminus and cpan-outdated. These are so easy and nimble to use that I hardly ever go back to CPAN shell. To upgrade all of your modules in one go, the command is: cpan-outdated -p | cpanm I recommend you install cpanminus … Read more
On Unix: usually you start cpan in your shell: $ cpan and type install Chocolate::Belgian or in short form: cpan Chocolate::Belgian On Windows: If you’re using ActivePerl on Windows, the PPM (Perl Package Manager) has much of the same functionality as CPAN.pm. Example: $ ppm ppm> search net-smtp ppm> install Net-SMTP-Multipart see How do I … Read more