For example with cpanp its by default

cpanplus\01mailrc.txt.gz cpanplus\02packages.details.txt.gz cpanplus\03modlist.data.gz cpanplus\db.sql cpanplus\5.16.1\build\ack-2.08\t\swamp\Makefile.PL cpanplus\authors\id\R\RU\RURBAN\CHECKSUMS cpanplus\authors\id\R\RU\RURBAN\Compress-Bzip2-2.17.tar.gz cpanplus\install-logs\ack-1.96-1371720568.log

the sources are shared, the build directories are not

You can change location from "$HOME" with PERL5_CPANPLUS_HOME


With cpanm its similar , to keep it from downloading source files over and over again (default) just tell it to cache them

export PERL_CPANM_OPT="--cascade-search --save-dists=$HOME/.cpanm/cach +e --mirror=$HOME/.cpanm/cache --mirror=http://search.cpan.org/CPAN"

With cpan its also very similar, $HOME by default ... can use https://metacpan.org/pod/cpan#CPAN_OPTS to use -j alternate/configfile ... here is what installing CGI using 3 different perls looks like

.cpan\FTPstats.yml .cpan\histfile .cpan\Metadata .cpan\build\CGI-4.21-0lIz7E.yml .cpan\build\CGI-4.21-f0xo4H.yml .cpan\build\CGI-4.21-v1xWJv.yml .cpan\build\CGI-4.21-0lIz7E\Changes .cpan\build\CGI-4.21-f0xo4H\Changes .cpan\build\CGI-4.21-v1xWJv\Changes .cpan\CPAN\MyConfig.pm .cpan\sources\MIRRORED.BY .cpan\sources\authors\01mailrc.txt.gz .cpan\sources\authors\id\L\LE\LEEJO\CGI-4.21.tar.gz .cpan\sources\authors\id\L\LE\LEEJO\CHECKSUMS .cpan\sources\modules\02packages.details.txt.gz .cpan\sources\modules\03modlist.data.gz

You don't need perlbrew for any of this, and its not exactly a secret

I don't use cpanp or cpan anymore, I mostly use cpanm with the default settings (no caching)


In reply to Re^5: Proper CPAN Installation ( sharing sources\authors\id ) by Anonymous Monk
in thread Proper CPAN Installation by Cmdr Colstel

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.