Search code examples
perlcpancpanm

Change cpanminus build directory


How can I change the cpanminus default build and download directory? Its default location is ~/.cpanm .

I already know how to change this in cpan, but I wish to know if this can also be configured in cpanminus.

I should also mention that I don't have root access.


Solution

  • As the documentation states:

    Fetched files are unpacked in ~/.cpanm and automatically cleaned up periodically. You can configure the location of this with the PERL_CPANM_HOME environment variable.

    Whether you have root access is irrelevant.