Fedora 22
Sponsored Link

Clamav AntiVirus
2015/05/27
 
Install Clam AntiVirus to protect from virus.
[1] Install Clamav.
[root@dlp ~]#
dnf -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: comment out

#
Example
[root@dlp ~]#
vi /etc/sysconfig/freshclam
# end line: comment out

#
FRESHCLAM_DELAY=disabled-warn
# update pattern files

[root@dlp ~]#
freshclam

ClamAV update process started at Wed May 27 19:24:15 2015
main.cvd is up to date (version: 55, sigs: 2424225, f-level: 60, builder: neo)
daily.cvd is up to date (version: 20507, sigs: 1397047, f-level: 63, builder: jesler)
bytecode.cvd is up to date (version: 256, sigs: 45, f-level: 63, builder: dgoddard)
[2] Try to scan.
# scan /home

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 3815733
Engine version: 0.98.7
Scanned directories: 3
Scanned files: 7
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 6.817 sec (0 m 6 s)

# download trial virus

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

# just detected

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

----------- SCAN SUMMARY -----------
Known viruses: 3815733
Engine version: 0.98.7
Scanned directories: 3
Scanned files: 9
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 7.027 sec (0 m 7 s)
Matched Content
 
Tweet