Installing cpanminus

As I’ve said before, I’m still pretty newb with Linux, and even more newbie with cpan, the perl essential. cpan is a console utility for downloading, compiling, and installing perl modules and perl-related binaries. I have not used it much, but it seems now that most people use another binary called cpanminus.

nn

As far as I can tell, cpanminus works pretty much the same as cpan, but with more convenience. For example, to install a module with cpan, one would input

nn

$ sudo cpann

nn

to launch cpan, and then

nn

cpan[1]>  install Module::Namen

nn

to install the module. The screen will go cattywompas as the utility shows all text as it finds, downloads, compiles, installs the stuff. I guess it looks pretty cool and might impress your less savvy computer friends, but does one really care to see all that stuff? Personally, I’m more interested in warnings and errors.

nn

To do the same with cpanminus is pretty simple. Just input

nn

$ sudo cpanm Module::Namen

nn

and in a non-verbose mode, cpanminus will install your code.

nn

So now you want to install cpanminus. Just execute

nn

$ sudo cpanncpan[1]> install App::cpanminusn

Leave a Reply

Your email address will not be published. Required fields are marked *