CentOS Stream 8
Sponsored Link

Clamav AntiVirus : Install2021/03/08

 
Install Clam AntiVirus to protect your System from Virus.
[1] Install Clamav.
# install from EPEL

[root@dlp ~]#
dnf --enablerepo=epel -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: comment out if it enabled

#
Example
# update pattern files manually

[root@dlp ~]#
freshclam

ClamAV update process started at Mon Mar  8 09:22:35 2021
daily database available for update (local version: 26100, remote version: 26101)
Current database is 1 version behind.
Downloading database patch # 26101...
Time:    0.1s, ETA:    0.0s [========================>]    7.80KiB/7.80KiB
Testing database: '/var/lib/clamav/tmp.086b237326/clamav-0164a8d6fcb12ded8f5b7d347d283799.tmp-daily.cld' ...
Database test passed.
daily.cld updated (version: 26101, sigs: 3958228, f-level: 63, builder: raynman)
main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
bytecode.cvd database is up to date (version: 332, sigs: 93, f-level: 63, builder: awillia2)
[2] Try to scan System.
# scan /home

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 8507879
Engine version: 0.103.0
Scanned directories: 2
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 14.989 sec (0 m 14 s)
Start Date: 2021:03:07 09:23:26
End Date:   2021:03:07 09:23:41

# download trial virus

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

# just detected and removed

/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 8507879
Engine version: 0.103.0
Scanned directories: 1
Scanned files: 9
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 14.991 sec (0 m 14 s)
Start Date: 2021:03:07 09:24:55
End Date:   2021:03:07 09:25:10
Matched Content