MINICPAN(1)

πŸ“¦
version 1.111017 Β· 4 versions
, in opensuse-leap 16.0

✨ 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 to 180 sec.
  • --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 -C on the command line
  • Use the value in the CPAN_MINI_CONFIG environment 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>

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