Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: Should cpanminus be part of the standard Perl release?

by atcroft (Abbot)
on Jun 01, 2018 at 13:16 UTC ( #1215629=note: print w/replies, xml ) Need Help??


in reply to Should cpanminus be part of the standard Perl release?

(I originally made comments similar to the below in the ChatterBox on 2018-06-01T08:43:37-0500, but adding here for comment by others.)

As some may not be familiar with cpanminus (or other CPAN clients), perhaps it might be of benefit to provide (possibly as one or more tutorials or meditations) a comparison of cpanminus to other common CPAN clients, showing the strengths (and, my hope, the weaknesses also) of both, and illustrating the reason(s) you believe there is (or is not) a benefit to doing so.

(Personally, I believe I only tried cpanminus on one occasion, and I honestly only remember that it used a different directory structure to my normal CPAN usage ("perl -MCPAN -e 'shell;'"), and thinking that if one were experimenting with different CPAN clients how much space could be "wasted" in the process.)

  • Comment on Re: Should cpanminus be part of the standard Perl release?

Replies are listed 'Best First'.
Re^2: Should cpanminus be part of the standard Perl release?
by marto (Cardinal) on Jun 01, 2018 at 13:27 UTC

    "perhaps it might be of benefit to provide (possibly as one or more tutorials or meditations) a comparison of cpanminus to other common CPAN clients, "

    I'm working on something as a background task, which has a hefty section on this very subject. I'll keep you posted.

    "and thinking that if one were experimenting with different CPAN clients how much space could be "wasted" in the process."

    cpanm has it's advantages, one being speed, it's simply a lot faster. It's also much lighter on resources, where cpan dies, e.g. installing things on an embedded, or otherwise resource limited system.

      cpanm has it's advantages, one being speed, it's simply a lot faster.

      How can that be? cpan and cpanm are simply front ends for the installers provided by the distributions.

        This isn't strictly true, both packages work differently, as the anonymonk has commented on. Shortly I'll be in a position to demonstrate some evidence/test cases.

        How can that be? cpan and cpanm are simply front ends for the installers provided by the distributions.

        Because it never tries to download  1,781,641 02packages.details.txt.gz and then unzip/load into a  44,652,400 sourcefiles.s2.39.c0.9133.stored or  21,497,461 Metadata or a  18,997,248 cpandb.sql

        These numbers are a 2-6 years old, thats when I switched to cpanminus away from cpanplus and rarely cpan

Re^2: Should cpanminus be part of the standard Perl release?
by ikegami (Pope) on Jun 01, 2018 at 23:55 UTC

    That would be awesome! I can't count the number of times I've asked why one would want to use cpanm, and the only answer I've gotten (that didn't lie about cpan) was that it works better on systems with less space (such as embedded systems), and that it hides the output of the installation tools when there's no error (which still hides useful information). (Obviously, cpanm is less configurable, but noone actually needs the extra configurability of cpan, so I won't count it against cpanm).

      Noone? Please count again. Maybe/probably a minority, but I personally know quite a few people that use the configuration of cpan to some extent. I have no idea if any of the other CPAN clients supports distroprefs the way cpan does. If cpanm does not (I would not know, I don't use it), it would be the reason not to use it.


      Enjoy, Have FUN! H.Merijn

        Ah cool. Would love to hear how.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1215629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2020-09-29 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If at first I donít succeed, I Ö










    Results (146 votes). Check out past polls.

    Notices?