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/downloadsRead the rest

How to install ClamAV on Centos

Clam AntiVirus (ClamAV) is a free, cross-platform antivirus software tool-kit able to detect many types of malicious software, including viruses. One of its main uses is on mail servers as a server-side email virus scanner. The application was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, Mac OS X, OpenVMS, OSF (Tru64) and Solaris.… Read the rest