Clamav Mac Brew

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.

ClamAV antivirus was initially designed as an email scanning gateway for Unix, but has since evolved into a robust free security solution for cross-platform devices like Windows and Mac. To this day, it remains one of the best antiviruses for Linux systems. By default, this tool doesn’t come prepackaged within the CentOS/RHEL repository. ClamAV のデーモンである clamd を使用すれば、より効果的にスキャンが可能となる。 Homebrew で clamav をインストールした場合、clamd は /usr/local/sbin/clamd にインストールされる。これを起動しないと後述の clamdscan などが使用できないので注意。. Install clamav on Mac OS. App name: clamav 0.99.2 App description: Anti-virus software. Brew install clamav. Now you can now use clamav antivirus. 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.

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:

Clamav Mac Brew Recipe

Change the following in the file from:

Clamav mac brew coffee

To:

Running the freshclam application again results in:

Clamav Mac Brew

Clamav Mac Download

Great! Now macOS can scan virus too!

Clamav Mac Os

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.

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!

Clamav Mac Brew Tea

  • Install Homebrew


    Paste that in a macOS Terminal or Linux shell prompt.

    The script explains what it will do and then pauses before it does it. Read about other installation options.

  • What Does Homebrew Do?


    Homebrew installs the stuff you need that Apple (or your Linux system) didn’t.

  • Homebrew installs packages to their own directory and then symlinks their files into /usr/local.

  • Homebrew won’t install files outside its prefix and you can place a Homebrew installation wherever you like.

  • It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.

  • Homebrew complements macOS (or your Linux system). Install your RubyGems with gem and their dependencies with brew.

  • “To install, drag this icon…” no more. Homebrew Cask installs macOS apps, fonts and plugins and other non-open source software.

  • Donate to Homebrew

  • Homebrew Blog

  • Analytics Data

  • Homebrew was created by Max Howell. Website by Rémi Prévost, Mike McQuaid and Danielle Lalonde.