How to install several CPAN distributions at once?

I recently started developing Perl and used CPAN to install all of my packages. I was wondering if there are โ€œbest practicesโ€ for managing the required packages for a script or application. Until now, I am doing this in an inelegant and cumbersome way. I have a script that looks like this:

install Foo::Bar
install Zulu::Car
...

and then i do

$perl -MCPAN -e shell < mycpan.foo
+3
source share
4 answers

Even if you do not download it, create the application as a CPAN module.

, Makefile.PL, , script/ myapplication (, / ).

- CPAN , tarball

cpan.

pip URL.

pip http://someserver.com/Your-Application-0.01.tar.gz

+4

Task:: *. , Task::. Task .

, :

 $ cpan .

MiniCPAN DPAN, :

 $ cpan Task::WhateverYouCalledIt

CPAN.pm , .

+2

, script, CPAN. - , .

CPAN, CPAN script, (, ExtUtils:: MakeMaker Module:: Install).

+1

, , , CPAN , . โ€‹โ€‹, apt, rpm GNU stow, , script, .

-1

Source: https://habr.com/ru/post/1722054/


All Articles