0

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.

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
CentAu
  • 10,660
  • 15
  • 59
  • 85

2 Answers2

3

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.

Sinan Ünür
  • 116,958
  • 15
  • 196
  • 339
0

If you get "No space left to device"

rm -rf /root/.cpan/build

ln -s /somewhere/with/space /root/.cpan/build

proceed as usual