Perl: uninstall perl cpan module
Unfortunately, there is no cpan remove or cpan uninstall command. What you can do:
cd ~/.cpan/build
cd Module-To-Be-Uninstalled-VERSION-xyz
make uninstall
# follow instructions (copy commands) since it often doesn't really perform the uninstall
If you find several "versions" of your Module for whatever reasons, you should
find ~/.cpan/build/Module-To-Be-Uninstalled* -name Makefile
and change into to mentioned directory.
I think I have to write a bash function or alias for that...
Written by Karsten Silkenbäumer
Related protips
2 Responses
Also note that there's CPANPLUS library which provides cpanp script.
You can use cpanp
to delete installed packages:
cpanp -u POE
However, you need to have CPANPLUS installed to perform this.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Perl
Authors
janosgyerik
25.11K
Jean-Remy Duboc
12.22K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#