Rate This Document
Findability
Accuracy
Completeness
Readability

Installing ClamAV

ClamAV can detect millions of viruses, worms, trojans, and other types of malware, including Microsoft Office macro viruses, mobile malware, and other threats. It can be installed independently on worker nodes. It can be used during the version release stage.

Installing ClamAV

  1. Use yum to install ClamAV.
    yum install -y clamav

    After the command is executed, the clamav, clamav-data, and clamav-filesystem components are installed.

    If the network is unavailable, configure a local repository and run the yum install -y clamav command to install ClamAV.

    For details about how to configure a local repository, see Configuring the OS Yum, APT, or Zypper Source.

  2. If the daily.cvd, main.cvd, or bytecode.cvd file does not exist in the /var/lib/clamav directory, download it in an environment with Internet access. After the file is downloaded, copy it to the /var/lib/clamav directory.
  3. Use yum to install the clamav-update component.
    yum install -y clamav-update

    The clamav-update component has been configured with a scheduled task to automatically download the latest virus definitions every eight hours. After installation, you can also update the virus definitions by running the following command:

    freshclam
    Figure 1 Updating database definitions