Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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:

  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

Your Answer


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.