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.conf
Open freshclam.conf and comment the "Example" (in new version it may be "FooClam") line:
# Comment or remove the line below.
# Example
Update database:
$ freshclam
Run scan on all your files:
$ clamscan -r --bell -i /
@gagarine: Great instructions. Thanks so much for posting this. It's working great for me.