Clamav Mac Homebrew



ClamXav 2.7 is the last free edition of the storied Mac antivirus app, but it fails to impress with an unintuitive interface and poor independent lab scores.

  1. Get ClamAV running on Mac OS X (using Homebrew) The easiest way to get the ClamAV package is using Homebrew $ brew install clamav Before trying to start the clamd daemon, you'll need a copy of the ClamAV databases.
  2. You won’t even notice it working away in the background – but threats to your Mac will, as virus definitions are constantly updated. You and your Mac Whether you’re a home user, business user or education user, ClamXAV provides effective malware protection on a single Mac or an entire network.

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.

Clamav Windows

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:

How Good Is Clamav

Great! Now macOS can scan virus too!

Clamav mac homebrew app

I can’t take credit for everything, I found this githubcommentthat basically describes the solution I presented.

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 Os

There are times where just using Linux to run open source software isa better experience than macOS. ClamAV is one of those times.

Hopefully, this post has helped you from giving up on open sourcesoftware!