Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I uninstall Perl modules?

I installed some Perl modules in my Linux machine. If I enter perldoc perllocal it shows a list of Perl modules installed in my machine, but now I don't need those Perl modules, so I want to remove them.

Does anyone know how to uninstall or remove those modules installed in Linux (debian 2.6.26)?

like image 779
Senthil kumar Avatar asked Dec 07 '22 00:12

Senthil kumar


2 Answers

The Perl installers are just that... installers. They don't verify that they're not overwriting existing files, and they don't record precisely what they install. Therefore, they cannot uninstall. If you want a proper packaging system, you can't use the Perl installers.

like image 175
Randal Schwartz Avatar answered Jan 05 '23 00:01

Randal Schwartz


If you use CPANPLUS to install a module, you can (at least in theory) also use it to uninstall it:

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

The older CPAN module does not support an uninstall option. And, as Randal Schwartz notes, uninstalling modules is not always reliable.

like image 32
Jonathan Leffler Avatar answered Jan 05 '23 00:01

Jonathan Leffler