Step 6: Install ClamAV eCAP Adapter

Checking downloaded files for viruses will be implemented using eCAP ClamAV adapter by Measurement Factory, see To download and compile all required packages, run bash


# all packages are installed as root
if [[ $EUID -ne 0 ]]; then
   echo "This script must be run as root" 1>&2
   exit 1

# install clamav
yum -y install wget clamav clamav-devel

# we will be working in a subfolder
rm -R ./build/ecap_clamav
mkdir -p ./build/ecap_clamav

# change into the folder
pushd ./build/ecap_clamav

# from now on every error is fatal
set -e

# download the sources

# unpack and untar them
gunzip ecap_clamav_adapter-2.0.0.tar.gz
tar -xvf ecap_clamav_adapter-2.0.0.tar

# configure, make and install
pushd ecap_clamav_adapter-2.0.0
./configure && make && make install

# and revert back

Press Next to continue to Step 7.