Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Modules Will Not Uninstall

by sierrathedog04 (Hermit)
on Apr 24, 2001 at 21:49 UTC ( [id://75166]=perlquestion: print w/replies, xml ) Need Help??

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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-19 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found