mcpani1p
Usage
mcpani {[options]
<
--add | --update | --mirror | --inject
>}
Commands:
Options:
Overview
mcpani uses CPAN::Mini to build or update a local CPAN mirror from a remote one, while also adding private or third-party distributions.
Configuration file
mcpani will search the following four places in order:
•
|
file pointed to by the environment variable MCPANI_CONFIG |
|---|---|
•
|
|
•
|
/usr/local/etc/mcpani |
•
|
/etc/mcpani |
By default, mcpani uses a simple configuration file in the following format:
local: /www/CPANremote: ftp://ftp.cpan.org/pub/CPAN ftp://ftp.kernel.org/pub/CPANrepository: /work/mymodulespassive: yesdirmode: 0755
Configuration options
- "dirmode"
-
Set the permissions of created directories to the specified mode (octal value). The default value is based on the umask (if supported).
- "force"
-
Update modules even if the module list is out of data. This is from CPAN::Mini.
- "local" (required)
-
Location to store local CPAN::Mini mirror
- "log_level"
-
The logging level for CPAN::Mini.
- "passive"
-
Enable passive FTP.
- "remote" (required)
-
CPAN site(s) to mirror from. Multiple sites can be listed, with spaces between them.
- "repository"
-
Location to store modules to add to the local CPAN::Mini mirror.
- "skip_cleanup"
-
Do not remove old files in the local directory. this is from CPAN::Mini.
- "skip_perl"
-
Do not mirror
perldistributions. This is from CPAN::Mini.
- "trace"
-
Enable trace logging. This is from CPAN::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 of
mcpaniand exit.
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-injecthttps://codeberg.org/briandfoy/cpan-mini-injecthttps://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.
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.
--all-in-meta until Debian 12 (Bookworm);
--authorid until Debian 12 (Bookworm);
--discover-packages until Debian 12 (Bookworm);
--file until Debian 12 (Bookworm);
--module until Debian 12 (Bookworm);
--modversion until Debian 12 (Bookworm).