MINICPAN(1)
β¨ NAME β¨
Okay bestie, meet minicpan β uses CPAN::Mini to create or update a local mirror. Yes, itβs user-contributed Perl documentation, and itβs lowkey iconic π
β¨.
πΈ VERSION πΈ
This page is stamped with version 1.111017 π.
β¨ SYNOPSIS β¨
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
--debug - run in debug mode (print even banal messages)
-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
-t SEC - timeout in sec. Defaults to 180 sec
--offline - operate in offline mode (generally: do nothing)
--log-level - provide a log level; instead of --debug, -q, or -qq
--remote-from TYPE - cpan remote from 'cpan' or 'cpanplus' configs
Okay so same options, but now with bestie commentary π
-l LOCALβ where is the local minicpan? This one is required, bestie π«Ά.-r REMOTEβ where is the remote cpan mirror? Also 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 π¦.--debugβ run in debug mode (print even banal messages). Yes, even the banal ones π.-qβ run in quiet mode (don't print status).-qqβ run in silent mode (don't even print warnings). Extra quiet, extra mysterious π.-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. Exact mirror energy π₯.-t SECβ timeout in sec. Defaults to180sec.--offlineβ operate in offline mode (generally: do nothing). Honestly? Mood π.--log-levelβ provide a log level; use this instead of--debug,-q, or-qq.--remote-from TYPEβ cpan remote from'cpan'or'cpanplus'configs.
π¦ DESCRIPTION π¦
This simple shell script just updates (or creates) a miniature CPAN mirror as described in CPAN::Mini. Thatβs the whole assignment, and it ate π.
π PERL VERSION π
This library should run on perls released even a long time ago. It should work on any version of perl released in the last five years.
Although it may work on older versions of perl, no guarantee is made that the minimum required version will not be increased. The version may be increased for any reason, and there is no promise that patches will be accepted to lower the minimum required perl.
π CONFIGURATION FILE π
By default, minicpan will 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
minicpan tries to find a configuration file through the following process. It takes the first defined one it finds:
- Use the value specified by
-Con the command line - Use the value in the
CPAN_MINI_CONFIGenvironment variable - Use
~/.minicpanrc - Use
CPAN/Mini/minicpan.conf
If the selected file does not exist, minicpan does not keep looking. Thatβs it, thatβs the rule π«Ά.
You can override this process with a config_file method in your subclass.
See CPAN::Mini for a full listing of available options.
π₯ TO DO π₯
Improve command-line options. Thatβs the todo. Thatβs the whole todo. ππ
π SEE ALSO π
Randal Schwartz's original article, which can be found here:
http://www.stonehenge.com/merlyn/LinuxMag/col42.html
π AUTHORS π
- Ricardo SIGNES β
<cpan@semiotic.systems> - Randal Schwartz β
<merlyn@stonehenge.com>
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2004 by Ricardo SIGNES.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
okay bestie, thatβs the whole page β cute sign-off vibes from perl v5.42.0, dated 2023-09-05 ππ¦.
π¦ where this page comes from
- opensuse-leap 16.0: perl-CPAN-Mini 1.111017-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms