Skip to content

Instantly share code, notes, and snippets.

@yriveiro
Forked from gagarine/install-clamav-osx.md
Created January 7, 2023 20:14
Show Gist options
  • Save yriveiro/ae96d66d7d9610833ed0a90a2f172d7f to your computer and use it in GitHub Desktop.
Save yriveiro/ae96d66d7d9610833ed0a90a2f172d7f to your computer and use it in GitHub Desktop.
Howto Install clamav on OSX with brew

Howto Install clamav on OSX with brew

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 /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment