I just wonder – are there any advantages to installing perl modules from the cpan shell compared to installing them by package management? Apart from occasionally having quicker access to the latest modules version?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well, it all depends on the intended use of the modules.
The native package management has many advantages:
files are in the right (system-dependant) place, scripts added to the
PATH, etc.
modules (e.g. the Debian Perl group).
(that may or not have the platform specific knowledge).
When installing directly from CPAN, you also have some advantages:
Nowadays, local::lib and perlbrew (howto) has made the CPAN way a lot more interesting for a developer. local::lib lets you have your private module tree while using the system’s perl binary and perlbrew lets you easily create your own complete Perl installations (also several Perl releases in parallel).
Both ways are valid, and as said, the advantage depends on the intended usage.