Uninstall ClamAV

SajtXL

Verified User
Joined
Nov 12, 2006
Messages
64
Anyone that has an roadmap for an uninstall of ClamAV on an CentOS 4.4.
I have mess up everything, I think a remove of ClamAV should be best solution for me. :confused:
 
I'm not sure how to uninstall it (you didn't even say how you installed it), but if you comment out calls to it in /etc/exim.conf, and restart exim, that should keep it from being called.

Jeff
 
This might work:

# cd /etc
  • Debian: # dpkg --remove clamav*
  • Redhat/Fedora: # yum remove clamav*
  • Mandriva: # urpme clamav
  • Gentoo: # emerge -C clamav
  • FreeBSD?: # pkg_deinstall -f security/clamav*
  • Slackware: # /etc/rc.d/rc.clamav stop; removepkg clamav
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package clamav.i386 0:0.90.1-1.rh9.rf set to be erased
--> Running transaction check

Dependencies Resolved
Transaction Listing:
Remove: clamav.i386 0:0.90.1-1.rh9.rf
Total download size: 0
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
warning: /etc/freshclam.conf saved as /etc/freshclam.conf.rpmsave
Erasing: clamav 1/1

Removed: clamav.i386 0:0.90.1-1.rh9.rf
Complete!
As seen here: http://wiki.clamav.net/Main/UninstallClamAV


Then u can decide to get rid of the few files that were kept as backup:
# rm /etc/freshclam.conf.*
# rm /var/run/clamav/*
# rmdir /var/run/clamav/
# rm /usr/local/bin/clamd
# rm /usr/local/lib/libcl*
...


btw, after this, I used Weals update script to try it again, and thusfar it looks okay again =)
Just a reminder, to change the line in exim.conf to: av_scanner = clamd:/tmp/clamd
 
Last edited:
This might work:


As seen here: http://wiki.clamav.net/Main/UninstallClamAV


Then u can decide to get rid of the few files that were kept as backup:
# rm /etc/freshclam.conf.*
# rm /var/run/clamav/*
# rmdir /var/run/clamav/
# rm /usr/local/bin/clamd
# rm /usr/local/lib/libcl*
...


btw, after this, I used Weals update script to try it again, and thusfar it looks okay again =)
Just a reminder, to change the line in exim.conf to: av_scanner = clamd:/tmp/clamd


yum remove clamav*
will remove only version not installed with custom build?
 
Yes, because CustomBuild does not use RPM packages for ClamAV.
 
Back
Top