Clamav Mac Install



ClamAV_Mac_Installation.txt
WindowsClamav

Now with the 6.2 release (available in beta as I write this), ClamAV support has been added and can be used either as the stand-alone scanner or as the secondary to McAfee. To use ClamAV with Kerio MailServer you need to get /usr/local/sbin/clamd running on the Mac (basically the same procedure applys to Linux). 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 process, you'll need a copy of the ClamAV.

ClamavInstall

Clamav Windows

ClamAV installation is very simple can be found for Ubuntu in the apt repository. Run this command to install ClamAV: sudo apt-get install clamav If you need clamd, you may also want to run: sudo apt-get install clamav-daemon. Install ClamAV packages. To install ClamAV on CentOS 7, we need to install and enable EPEL. ClamAV ® is the open source standard for mail gateway scanning software. High Performance ClamAV includes a multi-threaded scanner daemon, command line utilities for on demand file scanning and automatic signature updates.

Mac
Reference: https://gist.github.com/zhurui1008/4fdc875e557014c3a34e
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 process, you'll need a copy of the ClamAV databases.
$ cp /usr/local/etc/clamav/freshclam.conf.sample /usr/local/etc/clamav/freshclam.conf
comment out line 8 'Example' in freshclam.conf and make sure the following line is there around line 79: 'DatabaseMirror database.clamav.net'
$ cp /usr/local/etc/clamav/clamd.conf.sample /usr/local/etc/clamav/clamd.conf
comment out line 8 'Example' and uncomment line 85 'LocalSocket /tmp/clamd.socket'
Then run
$ /usr/local/Cellar/clamav/0.99.2_1/bin/freshclam -v
to download the ClamAV databases. The output will look something like this:
Current working dir is /usr/local/Cellar/clamav/0.99.2_1/share/clamav
Max retries 3
ClamAV update process started at Tue Jan 3 15:31:22 2017
Using IPv6 aware code
Querying current.cvd.clamav.net
TTL: 1651
Software version from DNS: 0.99.2
main.cvd version from DNS: 57
main.cvd is up to date (version: 57, sigs: 4218790, f-level: 60, builder: amishhammer)
daily.cvd version from DNS: 22830
Retrieving http://database.clamav.net/daily-22830.cdiff
Trying to download http://database.clamav.net/daily-22830.cdiff (IP: 172.110.204.67)
nonblock_recv: recv timing out (30 secs)
WARNING: getfile: Error while reading database from database.clamav.net (IP: 172.110.204.67): Operation now in progress
WARNING: getpatch: Can't download daily-22830.cdiff from database.clamav.net
Querying daily.22830.82.0.0.AC6ECC43.ping.clamav.net
Retrieving http://database.clamav.net/daily-22830.cdiff
Trying to download http://database.clamav.net/daily-22830.cdiff (IP: 198.148.78.4)
Downloading daily-22830.cdiff [100%]
...
Database updated (5451300 signatures) from database.clamav.net (IP: 198.148.78.4)
...
then run
$ /usr/local/Cellar/clamav/0.99.2_1/sbin/clamd
to start the process.
To scan a file, run
$ /usr/local/Cellar/clamav/0.99.2_1/bin/clamdscan --fdpass /tmp/ver.out
$ add clamav commands in PATH in ~/.bash_profile. Should be able to run freshclam, clamd and clamdscan afterwards.
export PATH=/usr/local/Cellar/clamav/0.99.2_1/bin:/usr/local/Cellar/clamav/0.99.2_1/sbin:$PATH

How Good Is Clamav

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment