Is there a way to completely remove CPAN from my machine? I tried searching Google for a way to do this, but all of the results are focused around uninstalling the modules.
Asked
Active
Viewed 1.2k times
2 Answers
1
A quick check of RHEL5 based boxes indicates that CPAN is provided as a part of the base Perl package. So there really isn't a way to remove it outside of yanking all of Perl itself. I'm betting it's the same with CentOS6. You can verify it yourself with:
rpm -q --whatprovides $(which cpan)
So you'll probably want to find a better test for your automation software.
Christopher Karel
- 6,682
0
Your best bet is to remove the CPAN directory and CPAN.pm from whatever your Perl library directories are. Just run "perl -V", and check the directories listed as library paths. In one of those you will find a CPAN.pm and CPAN directory - make a backup of them and them remove them.
Eirik Toft
- 834
- 9
- 20