I am Perl beginner. I wanted to use Log::Log4perl module as I am familiar how it works in Java. I used cpanm script to download module, but I ran it without "sudo". Then it installed this module to my dir /home/amer/perl5. Afterwards, I installed it as sudoer, but I want to remove installation in my home dir to avoid any conflicts in future. How can I do that? Here is my cmdline execution stack.
Thanks and Regards!
That's quite experimental for the moment being, but now cpanm supports an uninstall option. From MetaCpan :
Try App::pmuninstall
From your user account go to shell/command prompt, enter PPM. When PPM opens type "remove [package name]" this will uninstall that particular package for you. type "help remove" in PPM for more details.
I have tried App::pmuninstall and it is worked for me fine.
Install module using command:
$ perl -MCPAN -e shell
Usage.
On my local machine it has installed to /home/taras/perl5/bin/pm-uninstall
pm-uninstall [options] Module ...
options:
Module website is: https://metacpan.org/release/App-pmuninstall
I used David Farrell's script:
It did the job although it produced some scary looking output :-):
You might also want to have a look at this post.