On Wed, 1 Sep 2004, Andrew wrote: > Hi, > Silly me went and installed a source package on the wrong machine. The > package in question is Mail-SpamAssassin-2.64.tar.bz2 and the system is > Mdk-10. When I do 'make uninstall' I get: > > Uninstall is unsafe and deprecated, the uninstallation was not > performed. > We will show what would have been done. > > no packlist file found: at /usr/lib/perl5/5.8.3/ExtUtils/Install.pm > line 332. > make: *** [uninstall_from_sitedirs] Error 2 > > So how do I uninstall it? > > TIA, > Andrew > Terse answer: use `rm'
A slightly more detailed answer: identify what was installed by looking for a known file from the package, then remove everything installed at the same time. If you logged the output of 'make install', that will tell you what was installed. If you didn't, the first file installed was probably /usr/lib/perl5/site_perl/{$PERL_VERSION}/Mail/SpamAssassin.pm - you can use `ls -l' to see when you installed that, then remove anything installed in the next few seconds (depending on your machine's speed). Pointers, based on my ancient install of 2.55: /usr/lib/perl5/site_perl/{$PERL_VERSION}/Mail/SpamAssassin/ /usr/man/man1/ # {sa-learn,spamassassin,spamd,spamc}.1 /usr/man/man3/ # {Mail::SpamAssassin*} /usr/bin/ # programs as listed for man1 My 2.55 install also updated /usr/lib/.../SpamAssassin/.packlist , /usr/lib/.../perllocal.pod , /etc/mail/spamassassin , and /usr/share/spamassassin. I'd normally refrain from editing perllocal.pod on the grounds that superfluous entries pointing to a no-longer existent spamassassin are unlikely to hurt you. The rest can probably just be removed. Of course, if you're going to install it on a different box, that is an opportunity to log what it installs, and even to take a 'before' copy of perllocal.pod so you can see what gets changed (then, if the perl versions are equal and other perl packages are similar, you could diff before and after and reverse the diff against the machine where you are uninstalling). But, at the end of the day I don't think it's a massive package and if you haven't used it on the 'wrong' machine you'll only get back three or four MB of space so it probably isn't worth the bother. If you did use it there, clear out the ~/.spamassassin directory. Alternative answer: recover to the backups from before you installed it ;-) HTH Ken -- das eine Mal als Tragödie, das andere Mal als Farce - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.linux-learn.org/faqs