I've never tried this myself, but the cpanp command line utility which comes with perl 5.10(and is part of the CPANPLUS package for older versions of perl) provides an uninstall option. | [reply] |
Deleting the .pm and the binary components if there are any should do the trick. I don't know if there's an automatic way of doing that because it's just not something that needs to be done.
I wonder why you'd want to do that. I can think of a couple of specific cases where you'd want to do what, but I'm curious as to what yours is.
| [reply] |
In my book, uninstalling isn't just "making unavailable". For the latter, renaming the *.pm files to *.pm.disabled would suffice. Uninstall means weed out the package completely *if* no other package depends on it; *or* uninstall the package along with any relying modules, recursively.
For Linux IMHO, all perl modules should be made into packages for the package manager of the distribution at hand, i.e. RPM or DEB packages. For Gentoo things might be different, haven't touched that one yet.
| [reply] |
| [reply] |
sudo cpanm pm-uninstall
sudo pm-uninstall Module::Name | [reply] |
cpanm -U <module> worked for me.
You can add -f if you don't want it to ask. | [reply] [d/l] |