Fedora 27
Sponsored Link

Install Clamav AntiVirus
2017/12/13
 
Install Clam AntiVirus to protect your System from Virus.
[1] Install Clamav.
[root@dlp ~]#
dnf -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: comment out if enabled

#
Example
# update pattern files

[root@dlp ~]#
freshclam

ClamAV update process started at Thu Dec 13 19:29:35 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 24126, sigs: 1803461, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)
[2] Try to scan.
[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 6363975
Engine version: 0.99.2
Scanned directories: 3
Scanned files: 8
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 9.579 sec (0 m 9 s)

# download trial virus

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

# just detected and removed

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 6363975
Engine version: 0.99.2
Scanned directories: 1
Scanned files: 10
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 9.582 sec (0 m 9 s)
Matched Content