Howto: Install clamav on MacOS with Homebrew

$ brew install clamav
$ cd /usr/local/etc/clamav
$ cp freshclam.conf.sample freshclam.conf

Open "freshclam.conf" in your favorite editor and comment out the example line in the beginning of the file:

# Comment or remove the line below.
# Example

Update the virus database:

$ freshclam -v

To run a scan on your system include the command, arguments, and the scan path:

$ clamscan -r --bell -i /User/shortname

-r = look recurisvly through directories
--bell = play bell sound if a virus is detected
-i = only print viruses detected