ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. It is the de facto standard for mail gateway scanning. It provides a high performance mutli-threaded scanning daemon, command line utilities for on demand file scanning, and an intelligent tool for automatic signature updates. The core ClamAV library provides numerous file format detection mechanisms, file unpacking support, archive support, and multiple signature languages for detecting threats.

Install from the RPMs

1. Move to install directory:

2. Download the ClamAV installation package, ClamAV database, ClamAV development libraries and ClamAV daemon for your operating system type (32 bit of 64 bit):

For 32 bit:

For 64 bit:

3. Install ClamAV


Install via epel repository.

1. Install the EPEL package

2. Install ClamAV

Updating the ClamAV

Run Freshclam to download the newest pattern files:

Setting up the cronjob

1. Create the log file.

2. Create /etc/cron.daily/clamav-scan with the following contents.

3. Set the permissions.

Now you have installed ClamAV in your server and setup a cronjob that will update the ClamAV and scan the server everyday.