I use perlbrew
to manage my Perl environment.
When I installed perlbrew
the first time as per the documentation, it installed everything to ~/perl5/perlbrew
, which I now find undesirable.
The documentation states:
The directory ~/perl5/perlbrew will contain all install perl executables, libraries, documentations, lib, site_libs. In the documentation, that directory is referred as "perlbrew root". If you need to set it to somewhere else because, say, your HOME has limited quota, you can do that by setting PERLBREW_ROOT environment variable before running the installer:
export PERLBREW_ROOT=/opt/perl5/perlbrew curl -kL http://install.perlbrew.pl | bash
Question: How can I move PERLBREW_ROOT
directory to be /opt/perl5/perlbrew
instead of ~/perl5/perlbrew
?
~/perl5
. I don't see any reason why you couldn't updatePERLBREW_ROOT
to point to/opt/perl5
thenmv ~/perl5 /opt/perl5
. Or depending on how many Perls you have already installed, justrm ~/perl5
and reinstall in/opt/perl5
– Manrope@INC
will be all wrong, for one. – Astraperlbrew use vX.XX.XX
it would re-examine PERLBREW_ROOT. – Manropeperlbrew use vX.XX.XX
not simplyuse
. – Manropeperl
, I said@INC
would be all wrong. – Astra