CentAu
CentAu

Reputation: 11160

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.

Upvotes: 0

Views: 588

Answers (2)

akefalos
akefalos

Reputation: 1

If you get "No space left to device"

rm -rf /root/.cpan/build

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

proceed as usual

Upvotes: 0

Sinan Ünür
Sinan Ünür

Reputation: 118128

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.

Upvotes: 3

Related Questions