How To Install ClamAV On Linux?

Install Clamav On Linux

ClamAV is one of the trusted and open-source antivirus engine that helps you to detect and remove threats and malware from your computer. This antivirus software has a command line scanner that scans your computer periodically to protect it from all kinds of threats. To install ClamAV on Linux, you need the gcc or clang tool and the zlib, openssl version 1.0.2 or higher, and curl libraries. Some recommended libraries and tools are listed below.


check unit testing framework


  • pcre2
  • bzip2
  • libxml2
  • json-c library
  • ncurses library

Step-by-step instructions to install ClamAV.

  • If you wish to perform a private installation on a local shell account, then you can use an unprivileged shell account.
  • Build the following folder on your computer ./configure --prefix=/home/”xxxx”clamav --disable-clamav make; make install

Note: “xxx” indicates your home directory.

  • If you want to install the ClamAV on your system, then you need to run freshclam and clamd.
  • First, you need to create a special account for freshclam and clamd.

After performing this step successfully, you can perform the installation as discussed below.

Step 1: Installing ClamAV

  • Make sure that you have downloaded the ClamAV software file.
  • Now, open the terminal window on your Linux machine.
  • Type the make install command and run it.
  • Now, the antivirus software installation will be initiated.
  • Once the installation is done, start the antivirus software setup.

Step 2: Configuring the ClamAV application settings (freshclam)

Note: “freshclam” will help you to download the antivirus application updates.

  • To configure the ClamAV application settings using freshclam, you need to create a freshclam configuration. Enter the following command.cp /usr/local/etc/freshclam.conf.sample /usr/local/etc/freshclam.conf
  • Once the configuration is created, follow the on-screen instructions to complete it.

If you need remote assistance to install ClamAV on Linux, click the Call button to contact us.