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
.