Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've used cpanm to install cpan perl modules on my system, however the .cpanm/work directory is 100's of megs and I'd like to delete it.

Can I delete this directory without adversely affecting my cpanm installation?

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

Sure, you can.

But, from the cpanm 1.1.2, it automatically cleans up the work directories older than 7 days. You can change this number by using --auto-cleanup option:

--auto-cleanup
  Specifies the number of days in which cpanm's work directories expire. 
  Defaults to 7, which means old work directories will be cleaned up in one week.

  You can set the value to 0 to make cpan never cleanup those directories.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.