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

前端 未结 5 2025
独厮守ぢ
独厮守ぢ 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:48

    CPAN is the standard. cpanminus (cpanm) asks fewer questions (best most of the time). I don't know anyone that uses cpanplus.

    Since what these modules do is download, compile and install (place files in correct places) they all should do the same task. Some of the difference has to do with the permissions level you have. Perhaps you want to install some things local to your user and some things globally then you need a finer adjustment. Developers may also need to control/interrupt the process for debugging etc.

    For daily use, use cpanm, unless you are too lazy to install it, then CPAN is fine.

提交回复
热议问题