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 /
@tomasi-o actually, I agree with kunthar, macports is much more stable as a package manager. A particular port/package may have a bug, but the package manager is better for me. I do not use brew anymore.