Skip to content

Instantly share code, notes, and snippets.

@pjobson
Last active January 20, 2023 00:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjobson/3d8371fe3368602eac95155e9bf1fde1 to your computer and use it in GitHub Desktop.
Save pjobson/3d8371fe3368602eac95155e9bf1fde1 to your computer and use it in GitHub Desktop.
Clam AV Mac

Download/install from: https://www.clamav.net/downloads

Open terminal

One time:

sudo cp /usr/local/clamav/etc/freshclam.conf.sample /usr/local/clamav/etc/freshclam.conf
sudo /usr/bin/sed -i '' 's/Example/# Example/' /usr/local/clamav/etc/freshclam.conf
sudo cp /usr/local/clamav/etc/clamd.conf.sample /usr/local/clamav/etc/clamd.conf
sudo /usr/bin/sed -i '' 's/Example/# Example/' /usr/local/clamav/etc/clamd.conf

Each time you want to do a full scan:

sudo /usr/local/clamav/bin/freshclam
sudo /usr/local/clamav/bin/clamscan -r /

If it can't fix something you can manually delete infected files with:

sudo rm -rf <location of infected file>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment