Debian 10 Buster
Sponsored Link

Install Clam AntiVirus2019/07/12

 
Install Clam AntiVirus to protect your server from virus.
[1] Install Clamav.
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf
root@dlp:~#
systemctl restart clamav-freshclam
[2] Try to scan.
root@dlp:~#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 6178424
Engine version: 0.101.2
Scanned directories: 2
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 29.916 sec (0 m 29 s)

# download test virus

root@dlp:~#
wget http://www.eicar.org/download/eicar.com
root@dlp:~#
clamscan --infected --remove --recursive ./

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.    
# just detected
----------- SCAN SUMMARY -----------
Known viruses: 6178424
Engine version: 0.101.2
Scanned directories: 1
Scanned files: 5
Infected files: 1
Data scanned: 0.01 MB
Data read: 0.00 MB (ratio 2.00:1)
Time: 30.360 sec (0 m 30 s)
Matched Content