You can view the documentation below, or browse our GitHub Repository, where you can contribute to FAQ Documents. For complete documentation, download the ClamAV Manual.

Installing ClamAV

Installing from source

  • Check Requirements
  • Uninstall any old version, see UninstallClamAV (Note: this isn’t essential, but removes sources of problems).
  • wget the source gzip file, see Which Version.
  • untar the source to an appropriate location. Note that most modern versions of tar will automatically ungzip for you.
  • ensure you have a user clamav and group clamav.
    • If you’re using a different group/user you must specify that using the --with-user and/or --with-group option when you run configure
  • Configure the build:
    • for clamav-milter support ./configure --enable-milter
    • to support new features ./configure --enable-experimental
    • otherwise ./configure
  • run make
  • if you did not uninstall the previous version, stop any running services.
  • as root, run “make install” to install the binaries
  • it is recommended that you run ldconfig as root after installing
  • restart any relevant services.
  • Run freshclam manually, to ensure your AV definitions are up to date.



  • gcc or clang C compiler
  • openssl
  • zlib library

Note: you must compile with a shared library, use: make clean ; ./configure -s before make when building zlib

Known Library Compatibility Issues

  • zlib
    • Certain versions on certain OSes will cause failures loading virus database.
      • CentOS 6 32bit: zlib 1.2.3-29
        • Solution: Update to newer version.
      • AIX 5.3: zlib 1.2.11-1
        • Solution: Try different version, downgrade may be required.

Installing From Packages

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

Understand which packages you need

You don’t necessarily need all packages. Please read ClamOverview carefully to understand which ones you need.

Operating System Specific Information


# apt-get update
# apt-get install clamav


On CentOS:

# yum install -y epel-release

# yum install -y clamav

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  

Use the ports Luke.


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 OSX 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.msi - base package for clamav, an anti-virus utility for Windows

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