mcpani(1p)

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

•

$HOME/.mcpani/config

•

/usr/local/etc/mcpani

•

/etc/mcpani

By default, mcpani uses a simple configuration file in the following format:

 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"

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 perl distributions. 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 mcpani and 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-inject
        https://codeberg.org/briandfoy/cpan-mini-inject
        https://gitlab.com/briandfoy/cpan-mini-inject

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

  1. 8
  2. 9
  3. 10–11
  4. 12
  5. 13

--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).

Author

Shawn Sorichetti "<[email protected]>"

From libcpan-mini-inject-perl 1.012-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.