Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 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
    You can try the uninstall method in ExtUtils::Install.
    Please let us know if it works for you.

    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

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://819328]
Approved by broomduster
Front-paged by ww
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2016-06-29 01:01 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (365 votes). Check out past polls.