You can view the documentation below, or browse our GitHub Repository, where you can contribute to user manual and FAQ.

Installing ClamAV

Installing from source

For instructions on how to install ClamAV from source, take a look at our User Manual.

Installing From Packages

Installing your distribution’s packages is the easiest route. It will make also upgrades easier.

Understand which packages you need

Some distributions parcel up ClamAV components into separate packages. You don’t necessarily need all of the packages. If you wish to install the bare minimum, then read the ClamAV Overview carefully to understand which ones you will need.

Operating System Specific Information


  apt-get update
  apt-get install clamav


  yum install -y epel-release
  yum install -y clamav
  yum install -y clamd

On Community Enterprise Operating System (CentOS) the ClamAV package requires the Extra Packages for Enterprise Linux (EPEL) repository.

On RedHat Enterprise Linux (RHEL) the EPEL release package has to be installed either manually or through RHN.


  yum install -y clamav clamav-update


  urpmi clamav clamd


  emerge clamav

See package entry on Portage.


  zypper install -y clamav

FreeBSD, OpenBSD, NetBSD  

Althought all these systems offer the possibility to use ports or pkgsrc, you can install the pre-built package:

  • FreeBSD
  pkg install clamav
  • OpenBSD
  pkg_add clamav
  • NetBSD
  pkgin install clamav


Solaris packages from OpenCSW

OpenCSW is a community software project for Solaris 8+ on both Sparc and x86. It packages more than 2000 popular open source titles and they can all easily be installed with dependency handling via pkgutil which is modeled after Debian’s apt-get.

  pkgutil -i clamav

More info on OpenCSW


Martijn Dekker provides packages there that provide complete and semi-automatic integration with ClamAV’s stock Sendmail package.


Various Installation Guides for macOS can be found on the Internet, two that we have seen are:

How to use

Download the package, and as root, install it like so (substituting the appropriate filename):

  installpkg clamav-0.91.2-i486-1McD.tgz

To activate Sendmail integration, after installing the package, copy the /usr/share/sendmail/ file into /etc/mail/

  cp /usr/share/sendmail/ /etc/mail/

Then start ClamAV and restart Sendmail:

  /etc/rc.d/rc.clamav start
  /etc/rc.d/rc.sendmail restart

Building Your Own Package

You may wish to build your own package if I haven’t uploaded one with the most recent version yet, if you use a pre-11.0 Slackware version (at the time of this writing, I build on 11.0, 12.0 and 12.1, and my binaries may not work on earlier versions), if you don’t trust third-party binaries, or simply because you’re a complete geek ;-) . You can download my easy-to-use Slackbuild script, from which the fully-integrated ClamAV packages at are generated.

This script can be used to build a ClamAV package for Slackware 10.0 or higher with Sendmail installed (as Sendmail milter support was introduced as of 10.0). To choose a version of ClamAV to build, you can cd to the script’s directory and invoke the script like so:

  VERSION=1.23.4 ./clamav.SlackBuild

…substituting, of course, the appropriate ClamAV version for 1.23.4. Note: there is no need to be root to use this build script; it will ask for your root password after building the binaries and just before creating the package (and if you have fakeroot installed, even that isn’t necessary).


First update Windows

  • Microsoft Update

Available Packages

ClamAV builds for Windows users are available here

  • ClamAV-0.103.0.exe - Traditional executable installer that will install ClamAV in the “Program Files” directory.
  • - Portable install package for 64-bit Windows systems.
  • - Portable install package for 32-bit Windows systems.

How to Install

  • simple mode: doubleclick the MSI installer package
  • command line (displays only a confirmation dialog at the end): msiexec /i clamAV.msi /qr


The ClamAV for OpenVMS port is maintained by Alexey Chupahin, Mibok Ltd

Please visit ClamAV OpenVMS project site

First, you should download latest clamav sources and bzip2 library (if you need bz2 archives support) from the site above. Install process is very similar to one in unix:


This process provides for you:

  • ClamAV library
  • clamscan
  • freshclam
  • clamd
  • clamdscan
  • clamconf
  • scripts, allow you to start clamd and freshclam in daemon mode