Note: on legacy intel system the path may be /usr/local/etc/clamav instead of /opt/homebrew/etc/clamav/
$ brew install clamav
$ cd /opt/homebrew/etc/clamav/
$ cp freshclam.conf.sample freshclam.confOpen freshclam.conf and comment the "Example" (in new version it may be "FooClam") line:
# Comment or remove the line below.
# Example
Update database:
$ freshclamRun scan on all your files:
$ clamscan -r --bell -i /
By default the database dir is
/usr/local/share/clamav/, it is symlinked toCellar/...and get cleared on update. It might be a good idea to change DatabaseDirectory to/usr/local/var/lib/clamavin freshclam.conf & clamd.conf.