Fedora 40
Sponsored Link

Install Clam AntiVirus2024/05/07

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

#
Example
# update pattern files manually

[root@dlp ~]#
freshclam

ClamAV update process started at Tue May  7 11:31:54 2024
daily.cvd database is up-to-date (version: 27267, sigs: 2060708, 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: 335, sigs: 86, f-level: 90, builder: raynman)
[2] Try to scan the Fedora Server.
# scan [/home]

[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 8692538
Engine version: 1.0.6
Scanned directories: 534
Scanned files: 588
Infected files: 0
Data scanned: 67.50 MB
Data read: 69.98 MB (ratio 0.96:1)
Time: 17.446 sec (0 m 17 s)
Start Date: 2024:05:07 11:32:53
End Date:   2024:05:07 11:33:10

# download trial virus

[root@dlp ~]#
wget https://files.trendmicro.com/products/eicar-file/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: 8692538
Engine version: 1.0.6
Scanned directories: 7
Scanned files: 13
Infected files: 1
Data scanned: 2.65 MB
Data read: 1.25 MB (ratio 2.12:1)
Time: 12.811 sec (0 m 12 s)
Start Date: 2024:05:07 11:35:32
End Date:   2024:05:07 11:35:45
Matched Content