Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
Created July 5, 2012 20:02
Show Gist options
  • Save williamjacksn/3056105 to your computer and use it in GitHub Desktop.
Save williamjacksn/3056105 to your computer and use it in GitHub Desktop.
Uninstall ClamXav
#!/bin/bash
crontab -l | grep -v "no crontab for" | grep -v "freshclam" | grep -v "clamscan" > /tmp/crontmp
crontab /tmp/crontmp
rm /tmp/crontmp
find /Users ( -name "uk.co.markallan.clamxav.clamscan.plist" -or -name "uk.co.markallan.clamxav.freshclam.plist" ) -execdir launchctl unload -w "{}" \;
find /Users -name "uk.co.markallan.clamxav.*" -delete
rm -r /Library/Receipts/clamav*
rm -r /Library/Receipts/ClamAV*
rm -r /usr/local/clamXav
rm -r /Applications/ClamXav.app
@AsyaKarapetyan
Copy link

AsyaKarapetyan commented Oct 20, 2017

Another easy way to uninstall ClamXav - https://nektony.com/how-to/uninstall-clamxav-on-mac

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment