Skip to content

Instantly share code, notes, and snippets.

@judaew
Last active November 4, 2022 14:43
Show Gist options
  • Save judaew/ad77c563354397c1843f8801526742a3 to your computer and use it in GitHub Desktop.
Save judaew/ad77c563354397c1843f8801526742a3 to your computer and use it in GitHub Desktop.
How to install and setup clamav on MacOS with MacPorts

How to Install clamav on MacOS with MacPorts

sudo port install clamav
sudo cp /opt/local/etc/freshclam.conf.sample /opt/local/etc/freshclam.conf

Open freshclam.conf and delete the "Example" line:

sudo nvim /opt/local/etc/freshclam.conf

Update database:

sudo freshclam

Run scan:

clamscan -r --bell -i DIR/

See more in the man clamscan.

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