How to install ClamAV (clamscan) via command line

Install EPEL repos:

yum install epel-release -y

Install ClamAV packages:

yum install clamav -y

Update ClamAV’s signatures:

/usr/bin/freshclam

Or

Downloading stable version from https://www.clamav.net/downloads

cd /usr/local/src
wget https://www.clamav.net/downloads/production/clamav-0.103.3.tar.gz
tar -xvf clamav-0.103.3.tar.gz
cd clamav-0.103.3
./configure --sysconfdir=/var/lib/clamav --exec_prefix=/usr/
make && make install

Check for binary file:

which clamscan

Source: https://www.clamav.net/downloads

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *