yum install epel-release
yum repolist (epel/x86_64 Extra Packages for Enterprise Linux 7 – x86_64)
yum –disablerepo=”*” –enablerepo=”epel” list available
yum install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd -y
[root@server_for_product ~]#sed -i -e ‘s/^Example/#Example/’ /etc/freshclam.conf
[root@server_for_product ~]#sed -i -e ‘s/^Example/#Example/’ /etc/clamd.d/scan.conf
freshclam
/etc/clam.d/scan.conf (LocalSocket /var/run/clamd.scan/clamd.sock)
systemctl enable clamd@scan
ln -s ‘/usr/lib/systemd/system/[email protected]’ ‘/etc/systemd/system/multi-user.target.wants/[email protected]’
systemctl start clamd@scan
systemctl status clamd@scan
clamscan -r root