03 Apr 2017 03:57:15 UTC
- Distribution: App-cpanminus
- Module version: 1.7043
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (108)
- Testers (1999 / 0 / 0)
- KwaliteeBus factor: 1
- % Coverage
- License: perl_5
- Perl: v5.8.1
- Activity24 month
- Download (310.53KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:115 non-PAUSE usersMIYAGAWA Tatsuhiko Miyagawaand 74 contributors
- - Tatsuhiko Miyagawa
- Aaron Moses
- Alessandro Ghedini
- Andrew Rodland
- Andy Jones
- Ash Berlin
- Ben Bullock
- Breno G. de Oliveira
- Brian Wightman
- Christian Walde
- Dagfinn Ilmari Mannsaker
- Dana M. Diederich
- Dave Goodell
- Dave Rolsky
- David Golden
- David Steinbrunner
- Doug Bell
- fREW Schmidt
- Fuji, Goro
- Gareth Kirwan
- Graham Knop
- Graham Ollis
- Ingy dot Net
- Jan Dubois
- Jeffrey Ryan Thalhammer
- Jesse Luehrs
- J. Nick Koston
- Jonathan Scott Duff
- Kahlil (Kal) Hodgson
- Kenichi Ishigaki
- Kent Fredric
- Larry Leszczynski
- Masahiro Nagano
- Masayoshi Sekimura
- Matthew Horsfall
- Matt S Trout <>
- Matt S Trout
- Michael G. Schwern
- Norman Nunley
- Olaf Alders
- Olivier Mengue
- Pedro Melo
- Rafal Pocztarski
- Ricardo Signes
- Robert Buels
- Rob Hoelz
- Roman Jurkov
- Sebastian Riedel
- Shoichi Kaji
- Slaven Rezic
- Stoned Elipot
- Syohei YOSHIDA
- Thomas Sibley
- Tokuhiro Matsuno
- Tuure Laurinolli
- Vyacheslav Matyukhin
- Yann Kerherve
- NO WARRANTY
- SEE ALSO
App::cpanminus - get, unpack, build and install modules from CPAN
perldoc cpanmfor more options.
cpanminus is a script to get, unpack, build and install modules from CPAN and does nothing else.
It's dependency free (can bootstrap itself), requires zero configuration, and stands alone. When running, it requires only 10MB of RAM.
There are several ways to install cpanminus to your system.
There are Debian packages, RPMs, FreeBSD ports, and packages for other operation systems available. If you want to use the package management system, search for cpanminus and use the appropriate command to install. This makes it easy to install
cpanmto your system without thinking about where to install, and later upgrade.
You can also use the latest cpanminus to install cpanminus itself:
curl -L https://cpanmin.us | perl - --sudo App::cpanminus
This will install
cpanmto your bin directory like
/usr/local/binand you'll need the
--sudooption to write to the directory, unless you configured
If you have perl in your home directory, which is the case if you use tools like perlbrew or plenv, you don't need the
--sudooption, since you're most likely to have a write permission to the perl's library path. You can just do:
curl -L https://cpanmin.us | perl - App::cpanminus
to install the
cpanmexecutable to the perl's bin path, like
You can also copy the standalone executable to whatever location you'd like.
cd ~/bin curl -L https://cpanmin.us/ -o cpanm chmod +x cpanm
This just works, but be sure to grab the new version manually when you upgrade because
--self-upgrademight not work with this installation setup.
When you run
curlcommands above, you may encounter SSL handshake errors or certification warnings. This is due to your HTTP client (curl) being old, or SSL certificates installed on your system needs to be updated.
You're recommended to update the software or system if you can. If that is impossible or difficult, use the
-koption with curl or an alternative URL,
perl 5.8.1 or later.
'tar' executable (bsdtar or GNU tar version 1.22 are recommended) or Archive::Tar to unpack files.
C compiler, if you want to build XS modules.
Module::Build (core in 5.10)
It queries the CPAN Meta DB site at http://cpanmetadb.plackperl.org/. The site is updated at least every hour to reflect the latest changes from fast syncing mirrors. The script then also falls back to query the module at http://metacpan.org/ using its search API.
Upon calling these API hosts, cpanm (1.6004 or later) will send the local perl versions to the server in User-Agent string by default. You can turn it off with
Fetched files are unpacked in
~/.cpanmand automatically cleaned up periodically. You can configure the location of this with the
It installs to wherever ExtUtils::MakeMaker and Module::Build are configured to (via
By default, it installs to the site_perl directory that belongs to your perl. You can see the locations for that by running
perl -Vand it will be likely something under
/opt/local/perl/...if you're using system perl, or under your home directory if you have built perl yourself using perlbrew or plenv.
If you've already configured local::lib on your shell, cpanm respects that settings and modules will be installed to your local perl5 directory.
At a boot time, cpanminus checks whether you have already configured local::lib, or have a permission to install modules to the site_perl directory. If neither, i.e. you're using system perl and do not run cpanm as a root, it automatically sets up local::lib compatible installation path in a
perl5directory under your home directory.
To avoid this, run
cpanmeither as a root user, with
--sudooption, or with
It is more likely a problem with the distribution itself. cpanminus doesn't support or may have issues with distributions such as follows:
Tests that require input from STDIN.
Build.PL or Makefile.PL that prompts for input even when
Modules that have invalid numeric values as VERSION (such as
These failures can be reported back to the author of the module so that they can fix it accordingly, rather than to cpanminus.
Most likely not. Here are the things that cpanm doesn't do by itself.
CPAN testers reporting. See App::cpanminus::reporter
Building RPM packages from CPAN modules
Listing the outdated modules that needs upgrading. See App::cpanoutdated
Showing the changes of the modules you're about to upgrade. See cpan-listchanges
Patching CPAN modules with distroprefs.
See cpanm or
cpanm -hto see what cpanminus can do :)
Copyright 2010- Tatsuhiko Miyagawa
The standalone executable contains the following modules embedded.
- CPAN::DistnameInfo Copyright 2003 Graham Barr
- local::lib Copyright 2007-2009 Matt S Trout
- HTTP::Tiny Copyright 2011 Christian Hansen
- Module::Metadata Copyright 2001-2006 Ken Williams. 2010 Matt S Trout
- version Copyright 2004-2010 John Peacock
- JSON::PP Copyright 2007-2011 by Makamaka Hannyaharamitu
- CPAN::Meta, CPAN::Meta::Requirements Copyright (c) 2010 by David Golden and Ricardo Signes
- CPAN::Meta::YAML Copyright 2010 Adam Kennedy
- File::pushd Copyright 2012 David Golden
This software is licensed under the same terms as Perl.
Patches and code improvements were contributed by:
Goro Fuji, Kazuhiro Osawa, Tokuhiro Matsuno, Kenichi Ishigaki, Ian Wells, Pedro Melo, Masayoshi Sekimura, Matt S Trout (mst), squeeky, horus and Ingy dot Net.
Bug reports, suggestions and feedbacks were sent by, or general acknowledgement goes to:
Jesse Vincent, David Golden, Andreas Koenig, Jos Boumans, Chris Williams, Adam Kennedy, Audrey Tang, J. Shirley, Chris Prather, Jesse Luehrs, Marcus Ramberg, Shawn M Moore, chocolateboy, Chirs Nehren, Jonathan Rockway, Leon Brocard, Simon Elliott, Ricardo Signes, AEvar Arnfjord Bjarmason, Eric Wilhelm, Florian Ragwitz and xaicron.
- http://github.com/miyagawa/cpanminus - source code repository, issue tracker
- irc://irc.perl.org/#cpanm - discussions about cpanm and its related tools
This software is provided "as-is," without any express or implied warranty. In no event shall the author be held liable for any damages arising from the use of the software.
Module Install Instructions
To install App::cpanminus, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install App::cpanminus
For more information on module installation, please visit the detailed CPAN module installation guide.