CPANPLUS::Shell::Default::Plugins::Prereqs - Plugin for CPANPLUS to automate the installation of prerequisites without installing the module
version 0.14
use CPANPLUS::Shell::Default::Plugin::Prereqs; $ cpanp /prereqs <show|list|install> [Module|URL|dir]
A plugin for CPANPLUS's default shell which will display and/or install any missing prerequisites for a module. The module can be specified by name, as a URL or path to the directory of an unpacked module. The plugin assumes the current directory if no module is specified.
The following would list any reprequsites found in the Build.PL or Makefile.PL for the MyModule module:
MyModule
$ cd MyModule $ cpanp /prereqs show .
Or you could just have given the module name, and cpanp will find the the module on CPAN:
cpanp
$ cpanp /prereqs show YAML
And of course you can install the prereqs:
$ cd MyModule $ cpanp /prereqs install .
The module subroutines are primarily expected to be utilized by the CPANPLUS plugin infrasctructure.
CPANPLUS
Reports the plugin routines provided by this module.
Performs the reqrequsite listing or installation. Conforms to the CPANPLUS::Shell::Default::Plugins::HOWTO API.
CPANPLUS::Shell::Default::Plugins::HOWTO
Returns the short version documentation for the plugin.
CPANPLUS, CPANPLUS::Shell::Default::Plugins::HOWTO
Thanks to Jos Boumans for his excellent suggestions to improve both the plugin functionality and the quality of the code.
Add test for MakeMaker and Module::Install based modules. Add test for /prereq install. Split install_prereqs into multiple subroutines.
install_prereqs
Mark Grimes, <mgrimes@cpan.org>
This software is copyright (c) 2020 by Mark Grimes, <mgrimes@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install CPANPLUS::Shell::Default::Plugins::Prereqs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPANPLUS::Shell::Default::Plugins::Prereqs
CPAN shell
perl -MCPAN -e shell install CPANPLUS::Shell::Default::Plugins::Prereqs
For more information on module installation, please visit the detailed CPAN module installation guide.