Reputation: 2159
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?
Upvotes: 5
Views: 2538
Reputation: 2079
Well, it all depends on the intended use of the modules.
The native package management has many advantages:
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.
Upvotes: 11
Reputation: 46197
Using a native CPAN client gives you access to all modules on CPAN, most of which probably aren't packaged by your distro, but at the cost of your distro's package manager not knowing that they're installed (for dependency resolution, etc.). I know that Debian provides the dh-make-perl
package for converting CPAN modules to debs, which seems like it should give you the best of both worlds, but I've never tried it myself.
The most important thing, though, is to pick one method or the other and stick with it.
Upvotes: 3