ClamAV ® is the open source standard for mail gateway scanning software. Red Green Repeat Adventures of a Spec Driven Junkie Setting up ClamAV on macOS 09 Aug 2019. My preferred anti-virus system is ClamAV and I had trouble getting it running on macOS recently.
My preferred anti-virus system is ClamAV and I had trouble getting itrunning on macOS recently. Here’s how I got it going so if you’rerunning to the same issue, this should solve your problem.
I will go through the steps I took and problems encountered. Thisarticle will take you less than three minutes to read.
To get ClamAV running on macOS, run: brew install clamav
Thanks to brew
, open source software like ClamAV can run on multipleplatforms.
Normally, I would just run the application directly, in this case:clamav
, but that does not exist. The main application is: clamscan
Hmm. What is going on here?
After looking up the man page, man clamscan
, one related package isfreshclam
, that has a description:
freshclam - update virus databases
Aah - let’s run freshclam
to update the definition!
Well, there’s no such file, or where do I get it? Is there a sample somewhere?
Well, it turns out I missed a critical line in the brew
install, which was:
To finish installation & run clamav you will need to editthe example conf files at /usr/local/etc/clamav/
🤦♂️ whoops! I didn’t even look (and only when writing up this article,I noticed it).
Let’s make the freshclam.conf
file by running command:
Change the following in the file from:
To:
Running the freshclam
application again results in:
Great! Now macOS can scan virus too!
I can’t take credit for everything, I found this githubcommentthat basically describes the solution I presented.
Clamav Mac Os
I have this article as a way for me to remember but also remind myselfof apps that are better on Linux than macOS.
Getting ClamAV running on macOS isn’t that hard, but I was close togiving up!.
I love using open source software and macOS. As macOS is UNIX based,almost all open source software works on macOS.
Clamav Mac Download
There are times where just using Linux to run open source software isa better experience than macOS. ClamAV is one of those times.
Compile Clamav For Mac
Hopefully, this post has helped you from giving up on open sourcesoftware!
About the App
Openssl For Mac
- App name: clamav
- App description: Anti-virus software
- App website: http://www.clamav.net/
Install the App
- Press
Command+Space
and type Terminal and press enter/return key. - Run in Terminal app:
ruby -e '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)' < /dev/null 2> /dev/null
and press enter/return key.
If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish. - Run:
brew install clamav
Done! You can now use clamav
.