04 Mar 2010 12:58:23 UTC
- Distribution: CPAN-Mini
- Source (raw)
- Browse (raw)
- How to Contribute
- Clone repository
- Issues (3)
- Testers (133 / 0 / 0)
- KwaliteeBus factor: 1
- License: perl_5
- Perl: v5.6.0
- Activity24 month
- Download (19.36KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
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) -c CLASS - what class to use to mirror (default: CPAN::Mini) -C FILE - what config file to use (default: ~/.minicpanrc) -h - print help and exit -v - print version and exit -x - build an exact mirror, getting even normally disallowed files --offline - operate in offline mode (generally: do nothing)
This simple shell script just updates (or creates) a miniature CPAN mirror as described in CPAN::Mini.
minicpanwill read a configuration file to get configuration information. The file is a simple set of names and values, as in the following example:
local: /home/rjbs/mirrors/minicpan/ remote: http://your.favorite.cpan/cpan/ exact_mirror: 1
minicpantries to find a configuration file through the following process. It takes the first defined it finds:
Use the value specified by
-Con the command line
Use the value in the
If the selected file does not exist,
minicpandoes not keep looking.
You can override this process with a
config_filemethod in your subclass.
CPAN::Minifor a full listing of available options.
Improve command-line options.
Randal Schwartz's original article, which can be found here:
Randal Schwartz <email@example.com> had the bright idea and wrote the original implementation.
Ricardo SIGNES <firstname.lastname@example.org> brazenly took the script, made a module and distribution, and slowly allowed it to gain features.
This code was copyrighted in 2004, and is released under the same terms as Perl itself.