minicpan - uses CPAN::Mini to create or update a local mirror
minicpan [options] Options -l LOCAL - where is the local minicpan? (required) -r REMOTE - where is the remote cpan mirror? (required) -d 0### - permissions (numeric) to use when creating directories -f - check all directories, even if indices are unchanged -p - mirror perl, ponie, and parrot distributions -q - run in quiet mode (don't print status) -qq - run in silent mode (don't even print warnings)
This simple shell script just updates (or creates) a miniature CPAN mirror as described in CPAN::Mini.
The local and remote mirror locations are (for now) hardcoded and should be updated before running this script for the first time.
minicpan will read the file ~/.minicpanrc to get configuration information. The file is a simple set of names and values, as in the following example:
minicpan
~/.minicpanrc
local: /home/rjbs/mirrors/minicpan/ remote: http://your.favorite.cpan/cpan/ exact_mirror: 1
Improve command-line options.
Randal Schwartz's original article, which can be found here:
http://www.stonehenge.com/merlyn/LinuxMag/col42.html
Randal Schwartz <merlyn@stonehenge.com> did all the work.
Ricardo SIGNES <rjbs@cpan.org> made a module and distribution.
This code was copyrighted in 2004, and is released under the same terms as Perl itself.
To install CPAN::Mini, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CPAN::Mini
CPAN shell
perl -MCPAN -e shell install CPAN::Mini
For more information on module installation, please visit the detailed CPAN module installation guide.