April 5

clamav and clamscan on CentOS7

yum install -y epel-release; yum install -y clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd

cp -v /usr/share/clamav/template/clamd.conf /etc/clamd.d/clamd.conf

perl -p -i -e 's/Example//g' /etc/clamd.d/clamd.conf

freshclam

The scan example:

clamscan -ir / >> /root/fullscan.`date +%d-%m-%Y_%H.%M`.report