- COMMAND ARGUMENTS
- COMMAND OPTIONS
- USING cpan OR cpanm DIRECTLY
- COPYRIGHT AND LICENSE
App::Pinto::Command::install - install stuff from the repository
pinto --root=REPOSITORY_ROOT install [OPTIONS] TARGET...
!! THIS COMMAND IS EXPERIMENTAL !!
Installs targets from the repository into your environment. This is just a thin wrapper around cpanm that is wired to fetch everything from the Pinto repository, rather than a public CPAN mirror.
--do-pull option is given, then all targets and their prerequisites will be pulled onto the stack before attempting to install them. If any thing cannot be pulled because it cannot be found or is blocked by a pin, then the installation will not proceed.
Arguments are the things you want to install. These can be package names, distribution paths, URIs, local files, or directories. Look at the cpanm documentation to see all the different ways of specifying what to install.
You can also pipe arguments to this command over STDIN. In that case, blank lines and lines that look like comments (i.e. starting with "#" or ';') will be ignored.
!! THIS OPTION IS EXPERIMENTAL !!
When searching for a prerequisite package, always take the latest satisfactory version of the package found amongst all the upstream repositories, rather than just taking the first satisfactory version that is found. Remember that Pinto only searches the upstream repositories when the local repository does not already contain a satisfactory version of the package. This option only matters when the
--do-pulloption is also used.
- --cpanm-exe PATH
- --cpanm PATH
Sets the path to the cpanm executable. If not specified, the
PATHwill be searched for the executable. At present, cpanm version 1.500 or newer is required.
- --cpanm-options NAME=VALUE
- -o NAME=VALUE
These are options that you wish to pass to cpanm. Do not prefix the option NAME with a '-'. You can pass any option you like, but the
--mirror-onlyoptions will always be set to point to the Pinto repository.
Controls the style of the diff reports. STYLE must be either
detailed. Concise reports show only one record for each distribution added or deleted. Detailed reports show one record for every package added or deleted. This option ony matters when the
--do-pulloption is also used.
The default style is
concise. However, the default style can changed by setting the
PINTO_DIFF_STYLEenvironment variable to your preferred STYLE. This variable affects the default style for diff reports generated by all other commands too.
Pull the targets and recursively pull all their prerequisites onto the stack before installing. Without the
--do-pulloption, all targets and their prerequisites must already be on the stack or the installation will probably fail. When the
--do-pulloption is used, the stack must not be locked.
- -l DIRECTORY
Shortcut for setting the
--local-liboption on cpanm. Same as
- -L DIRECTORY
Shortcut for setting the
--local-lib-containedoption on cpanm. Same as
- -m TEXT
Use TEXT as the revision history log message. This is only relevant if you also set the
--do-pulloption. If you do not use
--messageoption, then you will be prompted to enter the message via your text editor. Use the
VISUALenvironment variables to control which editor is used. A log message is not required whenever the
--dry-runoption is set, or if the action did not yield any changes to the repository.
- -s NAME
Use the stack with the given NAME as the repository index. When used with the
--pulloption, this also determines which stack prerequisites will be pulled onto. Defaults to the name of whichever stack is currently marked as the default stack. Use the stacks command to see the stacks in the repository.
Use the default value for the revision history log message. This is only relevant if you also set the
--do-pulloption. Pinto will generate a semi- informative log message just based on the command and its arguments. If you set an explicit message with
--use- default-messageoption will be silently ignored.
On the surface, A Pinto repository looks like an ordinary CPAN repository, so you can use any client to install modules. All you have to do is "point" it at the URI of your Pinto repository. Each client has a slightly different interface for setting the URI.
For cpanm, use the
--mirror-only options like this:
$> cpanm --mirror file:///path/to/repo --mirror-only Some::Package ...
For cpan, set the
urllist config option via the shell like this:
$> cpan cpan> o conf urllist file:///path/to/repo cpan> reload index cpan> install Some::Package cpan> o conf commit # If you want to make the change permanent
Pointing your client at the top of your repository will install modules from the default stack. To install from a particular stack, just append the stack name to the URI. For example:
file:///path/to/repo # Install from default stack file:///path/to/repo/stacks/dev # Install from "dev" stack file:///path/to/repo/stacks/prod # Install from "prod" stack
If your repository does not have a default stack then you must specify the full URI to one of the stacks as shown above.
install command does not support some of the newer features found in version 1.6 (or later) of cpanm, such as installing from a Git repository, installing development releases, or using complex version expressions. If you pass any of those as arguments to this command, the behavior is unspecified.
Jeffrey Ryan Thalhammer <email@example.com>
This software is copyright (c) 2013 by Jeffrey Ryan Thalhammer.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.