App::cpanminus: zero-conf CPAN client December 10, 2010Posted by claudio in Uncategorized.
Tags: cpan, cpanm, Free Software, GNU/Linux, Perl, perlbrew, UNIX
cpanminus is a script to get, unpack, build and install modules from CPAN.
Why? It’s dependency free, requires zero configuration, and stands alone. When running, it requires only 10MB of RAM.
How does it work? Let try a big module with a lot of dependencies and C++ compiling activity. Install the application through cpan if configured (or with one of the standalone installations options):
$ cpan App::cpanminus
$ cpanm Moose
--> Working on Moose
Fetching http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Moose-1.21.tar.gz ... OK
Configuring Moose-1.21 ... OK
==> Found dependencies: Try::Tiny, Package::DeprecationManager, Test::Requires, Class::MOP, Sub::Exporter, Test::Fatal, Sub::Name, Data::OptList, Params::Util, List::MoreUtils, Task::Weaken
--> Working on Try::Tiny
Building and testing Moose-1.21 ... OK
Successfully installed Moose-1.21
$ perl -MMoose -e1
No errors. The modules (and their dependencies) installed just fine. Wow.