Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

removing a perl mod thats been manually installed

by tku703 (Initiate)
on Apr 30, 2014 at 00:54 UTC ( #1084417=perlquestion: print w/replies, xml ) Need Help??

tku703 has asked for the wisdom of the Perl Monks concerning the following question:

Hello everyone, I know this question has been beaten to death, How do you remove a perl mod thats been manually installed?? (Download tar file, perl Makefile.PL, make, make install) I've googled around and I'm not able to find my answer. I've tried to remove the files manually after I installed the mod but when I use 'instmodsh', it still showing the mod installed. Do you just remove the files manually? Please note CPAN is not an option. Sorry... I'm a total Perl newb
  • Comment on removing a perl mod thats been manually installed

Replies are listed 'Best First'.
Re: removing a perl mod thats been manually installed
by davido (Cardinal) on Apr 30, 2014 at 06:27 UTC

    Running Makefile.PL creates a Makefile that is executed by make. What make does is an automated, but complex process. To get some idea of what's going on behind the curtain, read the module's Makefile, while referring to ExtUtils::MakeMaker as a study guide. In the end, your module gets installed somewhere, and man pages get installed, along with the possibility of some other stuff getting installed here and there, depending on the distribution. My best guess in your case is that while you've managed to delete the module code, you may have left the man pages, and that's what is still showing up.

    But I don't know for sure. What I do know is that uninstalling by hand something that an automated tool created can be messy and prone to missing something. This is why AnonymousMonk's suggestion for a tool from CPAN that can automate the process is a good one. However, it does require that you install another CPAN module. Perl's core utilities don't include a module uninstaller.


    Dave

      Perl's core utilities don't include a module uninstaller.

      :) sure they do cpanp -u MODULE ... # uninstall module(s)

      Before that you could find the .packlist yourself and delete the files (or using ExtUtils::Installed)

      But apparently thats "very unsafe" because you don't know if another module claims the same files ... much ado about nothing IMHO, make the decision for yourself:) Uninstalling perl module - nntp.perl.org

      My research

        Thanks for the followup and setting the record straight. Worse than being wrong is propagating incorrect information, so the correction is appreciated.


        Dave

Re: removing a perl mod thats been manually installed ( pm-uninstall )
by Anonymous Monk on Apr 30, 2014 at 01:33 UTC

    Please note CPAN is not an option

    Why, it didn't work?

    Try pm-uninstall

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1084417]
Approved by LanX
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2020-11-30 21:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?