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

There are a bunch of installed Perl modules which I want to remove from my Perl 5.005_02/Apache 1.3 machine. I tried running 'make uninstall' on the modules. 'make uninstall' said it had unlinked the files but that the command is deprecated.

I went into the directories that untar created for each of these modules and I renamed them all.

But Perl/Apache still sees these modules and executes them! How can I get rid of old modules?

Replies are listed 'Best First'.
Re: Modules Will Not Uninstall
by Aighearach (Initiate) on Apr 24, 2001 at 22:27 UTC
    I am assuming that apache implies *n[iu]x... what I do is this:
    rm `locate module_i_dont_like_anymore.pm`
    
    That should delete all occurances of the file. Note that you probably want to first do:
    ls `locate ...`
    
    to make sure you're deleting only what you want to delete. Also, it might be a better idea to just use:
    rm `locate module_I_dont_like.`
    
    without the extention, that you'll get any compiled libs by the same name.

    Note that, I'm not saying this is the correct way to do it, I'm just saying, this should get rid of (most of) the files in a (fairly) safe manner.

    Also, first do a locate that is pretty broad, to see what you're dealing with. For example, locate Gimp suggests to me to do a rm -r `locate "/Gimp"`. (the non-Perl gimp stuff all has a lowercase g)

    Aigh

Re: Modules Will Not Uninstall
by epoptai (Curate) on Apr 24, 2001 at 22:27 UTC
    Delete or move the directories.
Re: Modules Will Not Uninstall
by sierrathedog04 (Hermit) on Apr 24, 2001 at 23:10 UTC
    Thanks everyone. As Aighearach suspected, the problem was that not all of the *.pm files were removed.

    Installing a module on my system creates a second copy of the module that is stored in /usr/local/lib/perl5/5.00/..

    Removing those copies of the *.pm modules finally killed them.