我已经使用cpanm在我的系统上安装cpan perl模块,但是.cpanm / work目录是100个megs,我想删除它。
我可以删除这个目录而不会对我的cpanm安装造成不利影响吗?
你当然可以。
但是,从cpanm 1.1.2开始,它会自动清理超过7天的工作目录。 你可以通过使用--auto-cleanup选项来改变这个数字:
--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.