Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

How to uninstall Perl Module?

by sugarboy (Beadle)
on Jan 24, 2010 at 19:05 UTC ( #819328=perlquestion: print w/replies, xml ) Need Help??
sugarboy has asked for the wisdom of the Perl Monks concerning the following question:

Hi Monks,
I have a stupid question....how can we uninstall an existing Perl Module in Linux........ Does directly deleting the respective folder from lib directory can uninstall the Perl Module?

Replies are listed 'Best First'.
Re: How to uninstall Perl Module?
by thunders (Priest) on Jan 24, 2010 at 20:19 UTC
    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.
Re: How to uninstall Perl Module?
by ikegami (Pope) on Jan 24, 2010 at 19:39 UTC

    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.

Re: How to uninstall Perl Module?
by shmem (Canon) on Jan 25, 2010 at 00:25 UTC

    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.

Re: How to uninstall Perl Module?
by vishi83 (Pilgrim) on Jan 25, 2010 at 05:15 UTC
    Hi,
    You can try the uninstall method in ExtUtils::Install.
    Please let us know if it works for you.
    Thanks,
    Vishy.

    A perl Script without 'strict' is like a House without Roof; Both are not Safe;
Re: How to uninstall Perl Module?
by Anonymous Monk on Jan 25, 2010 at 03:22 UTC
    cpanp u Module::Name
Re: How to uninstall Perl Module?
by Anonymous Monk on Apr 10, 2013 at 01:58 UTC
    sudo cpanm pm-uninstall sudo pm-uninstall Module::Name
Re: How to uninstall Perl Module?
by Anonymous Monk on Jul 20, 2016 at 17:24 UTC
    cpanm -U <module> worked for me. You can add -f if you don't want it to ask.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://819328]
Approved by broomduster
Front-paged by ww
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2016-12-10 04:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (159 votes). Check out past polls.