I was attempting to upgrade my Perl modules through CPAN, but I did not supply a regex/module name to upgrade: perl -MCPAN -e 'upgrade'
; I can only assume the worst (which seems to be supported by the output of perldoc perllocal
), i.e. all Perl modules from CPAN are installing.
How can I undo this mess? I suppose I can remove /usr/local/share/perl
, but what are the implications of that?
Edit: I still have 95% free space on my hard drive, so it's not a huge concern. I just don't want lots of unnecessary clutter. I'm considering rm
'ing that directory, doing dpkg --purge perl
and redoing the apt-get
and CPAN install process. But is it really necessary, or can I just remove the unnecessary modules from /usr/local/share/perl
?