MCPANI(1p)
π MCPANI π
okay bestie, so this is the manual page for mcpani β a command line tool that manages a CPAN Mini Mirror. she's giving very much "run my mirror, keep my modules, don't talk to me before coffee" energy and honestly? we're obsessed. π
β¨ SYNOPSIS β¨
mcpani [options] < --add | --update | --mirror | --inject >
πΈ Commands:
--addβ drop a brand new package into the repository. but bestie, she needs her little friends:--moduleβ the name of the module you're adding--authoridβ the author ID of the module--modversionβ the version number of the module--fileβ distribution module
--updateβ refresh the local CPAN mirror and inject modules. the glow-up is twofold, periodt β¨--mirrorβ pull a fresh local CPAN mirror down from the remote--injectβ take modules from your repository and put them into the CPAN mirror
π Options:
-h,--helpβ this synopsis-H,--manβ the detailed description-l,--localβ local location for CPAN::Mini Mirror-r,--remoteβ the CPAN mirror to mirror from-p,--passiveβ enable passive ftp for mirroring.-v,--verboseβ verbose output-V,--versionβ version information.--signing-keyβ see CPAN::Checksums$SIGNING_KEY
π¦ DESCRIPTION π¦
mcpani uses CPAN::Mini to build or update a local CPAN mirror from a remote one, and while she's at it she also adds private or third-party distributions. she contains multitudes, your honor. ππ
π Configuration file
mcpani will search these four places, in order, no skips:
- the file pointed to by the environment variable
MCPANI_CONFIG $HOME/.mcpani/config/usr/local/etc/mcpani/etc/mcpani
By default, mcpani uses a simple configuration file that looks exactly like this:
local: /www/CPAN
remote: ftp://ftp.cpan.org/pub/CPAN ftp://ftp.kernel.org/pub/CPAN
repository: /work/mymodules
passive: yes
dirmode: 0755
π Configuration options
"dirmode"β sets the permissions of created directories to the specified mode (an octal value, bestie, keep it octal). the default value is based on theumask(if that's supported)."force"β update modules even if the module list is out of date. this one comes fromCPAN::Mini."local"(required) β where you store the localCPAN::Minimirror. required, no cap."log_level"β the logging level forCPAN::Mini."passive"β enable passive FTP."remote"(required) β the CPAN site(s) to mirror from. you can list multiple sites, with spaces between them. also required!"repository"β where you store the modules that are going to be added to the localCPAN::Minimirror."skip_cleanup"β do not remove old files in the local directory. this is fromCPAN::Mini."skip_perl"β do not mirror perl distributions. this is fromCPAN::Mini."trace"β enable trace logging. this is fromCPAN::Mini
π Command-line options
--add--authoridβ the CPAN ID--fileβ the distribution file--moduleβ the package name of the main module-v,--verbose--versionβ the version of the distribution
-h,-H,--help,--man,-?β output a help message and exit.--injectβ inject the local distributions into the local repository.-v,--verbose
--mirrorβ update the local MiniCPAN by downloading the latest modules from the public CPAN (or the CPAN-like repo specified in the"remote"config."--mirror"uses-l,--local-r,--remote-v,--verbose
--updateβ this runs"--mirror"then"--inject".-V,--versionβ output the version ofmcpaniand exit.
ngl, that "--mirror" uses line really just... trails off in the original. she said what she said and then stopped. we're respecting the icon's silence. π
π AUTHOR π
Shawn Sorichetti <ssoriche@coloredblocks.net>
β SOURCE AVAILABILITY β
the main repository is on GitHub:
https://github.com/briandfoy/cpan-mini-inject
there are also backup repositories on several other services:
https://bitbucket.org/briandfoy/cpan-mini-inject
https://codeberg.org/briandfoy/cpan-mini-inject
https://gitlab.com/briandfoy/cpan-mini-inject
π COPYRIGHT & LICENSE π
Copyright 2004 Shawn Sorichetti, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
and that's the whole vibe check, bestie π«Ά this one's from perl v5.40.1, dated 2025-04-12. go forth and mirror slayfully. β¨π
π¦ where this page comes from
- debian trixie: libcpan-mini-inject-perl 1.012-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcpan-mini-inject-perl 1.012-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcpan-mini-inject-perl 1.012-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms