Devel::IPerl::Plugin::CpanMinus - cpanm client
This plugin enables users to curate local::lib as set up in Devel::IPerl::Plugin::Perlbrew.
Once users have access to Devel::IPerl::Plugin::Perlbrew they wish to have the ability to curate the libraries they create. While this is easy to achieve at the command line, the notebook is an excellent place to document this workflow as well.
IPerl->load_plugin('CpanMinus') unless IPerl->can('cpanm'); # create and use a library IPerl->perlbrew_lib_create('cpanm-test'); IPerl->perlbrew('cpanm-test'); # install dependencies for notebook IPerl->cpanm_installdeps('.'); # install a specific module IPerl->cpanm('Test::Pod');
Called by IPerl->load_plugin('CpanMinus').
IPerl->load_plugin('CpanMinus')
These all take as arguments any arguments that are accepted by the command line client cpanm.
# install a specific module IPerl->cpanm('Test::Pod');
Use cpanm to install the given module.
IPerl->cpanm_info('Test::Pod');
Displays the distribution information in "AUTHOR/Dist-Name-ver.tar.gz" format.
# install dependencies as listed in cpanfile in current directory IPerl->cpanm_installdeps('.'); # install dependencies for a module IPerl->cpanm_installdeps('-n', '--quiet', 'Test::Pod');
To install Devel::IPerl::Plugin::Perlbrew, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Devel::IPerl::Plugin::Perlbrew
CPAN shell
perl -MCPAN -e shell install Devel::IPerl::Plugin::Perlbrew
For more information on module installation, please visit the detailed CPAN module installation guide.