How to remove Perl modules?

I have installed some Perl modules on my Linux computer. If I enter perldoc perllocal , it will display a list of Perl modules installed on my machine, but now I don't need these Perl modules, so I want to remove them.

Does anyone know how to remove or remove these modules installed on Linux (debian 2.6.26)?

+4
source share
6 answers

Perl installers are just ... installers. They do not verify that they do not overwrite existing files, and they do not record exactly what they install. Therefore, they cannot delete. If you need the right packaging system, you cannot use Perl installers.

+5
source

If you use CPANPLUS to install a module, you can (at least theoretically) use it to remove it:

 $ cpanp ... > u Unwanted::Module ... > q $ 

An older CPAN module does not support the delete option. And, as Randall Schwartz notes, removing modules is not always reliable.

+5
source

Use cpanp (its removal is not limited to the modules installed by cpanplus), or see the ExtUtils :: Packlist modrm example.

Uninstall tools were initially unavailable because the installation process is not reliable reversible, as Randal warns.

+3
source

You can try App :: pmuninstall

DESCRIPTION

App :: pmuninstall is a quick module uninstaller. delete files from .packlist.

App :: cpanminus and, App :: cpanoutdated with high affinity.

+1
source

As I mentioned somewhere else in SO , my answer is just to leave them. There are very few Perl modules large enough to take up any real space on your system. I do not say, do not try if you really need space, but if you do not, it is not worth it.

+1
source

I tried to remove cpanp and it did not work for me. I found success using App :: pmuninstall.

pm-uninstall [options] Module ...

pm-uninstall - Remove modules - metacpan.org

0
source

All Articles