Fedora 37
Sponsored Link

Install Clam AntiVirus2022/11/16

 
Install Clam AntiVirus to protect your System from Computer Virus.
[1] Install Clamav.
[root@dlp ~]#
dnf -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 Wed Nov 16 16:54:45 2022
daily.cvd database is up-to-date (version: 26721, sigs: 2010985, f-level: 90, builder: raynman)
main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
[2] Try to scan the Fedora Server.
# scan [/home]

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 8643026
Engine version: 0.103.7
Scanned directories: 2
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 13.804 sec (0 m 13 s)
Start Date: 2022:11:16 16:55:07
End Date:   2022:11:16 16:55:21

# 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: 8643026
Engine version: 0.103.7
Scanned directories: 1
Scanned files: 11
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 13.780 sec (0 m 13 s)
Start Date: 2022:11:16 16:55:51
End Date:   2022:11:16 16:56:05
Matched Content