Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

How to uninstall Perl Module?

by sugarboy (Beadle)
on Jan 24, 2010 at 19:05 UTC ( [id://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 (Patriarch) 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 (Chancellor) 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
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://819328]
Approved by broomduster
Front-paged by ww
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-04-23 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found