Which cpan installer is the right one? (CPAN.pm/CPANPLUS/cpanminus)

前端 未结 5 2026
独厮守ぢ
独厮守ぢ 2020-11-29 22:05

There are multiple installers for cpan modules available; I know of at least CPAN.pm (comes with perl,) CPANPLUS, and cpanminus.

What is the difference between the t

5条回答
  •  伪装坚强ぢ
    2020-11-29 22:26

    It's impossible answer this question because it is too subjective. :)

    From my point of view: cpanm is the simplest way install perl modules. You can install cpanm with:

    curl -L http://cpanmin.us | perl - --sudo App::cpanminus
    

    and after it you can install modules with simple:

    cpanm Some::Module
    

    You can use cpanm for mirroring (part of) CPAN to you local machine too, so IMHO cpanm is the best for the most common CPAN needs.

提交回复
热议问题