Install Clam AntiVirus2026/05/11 |
|
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 Mon May 11 14:15:56 2026 daily database available for download (remote version: 27996) Time: 2.5s, ETA: 0.0s [========================>] 22.32MiB/22.32MiB Testing database: '/var/lib/clamav/tmp.e12af9f0a1/clamav-fb1a9fd57c37b9834f4535d771ced9f5.tmp-daily.cvd' ... Database test passed. daily.cvd updated (version: 27996, sigs: 355446, f-level: 90, builder: svc.clamav-publisher) main database available for download (remote version: 63) Time: 8.4s, ETA: 0.0s [========================>] 84.95MiB/84.95MiB Testing database: '/var/lib/clamav/tmp.e12af9f0a1/clamav-632228e635bb94d0d81c5c4a0777daa9.tmp-main.cvd' ... Database test passed. main.cvd updated (version: 63, sigs: 3287027, f-level: 90, builder: tomjudge) bytecode database available for download (remote version: 339) Time: 0.1s, ETA: 0.0s [========================>] 275.10KiB/275.10KiB Testing database: '/var/lib/clamav/tmp.e12af9f0a1/clamav-d3718ca7a46ef2722754d86a944606cc.tmp-bytecode.cvd' ... Database test passed. bytecode.cvd updated (version: 339, sigs: 80, f-level: 90, builder: nrandolp) |
| [2] | Try to scan the Fedora Server. |
|
# scan [/home] [root@dlp ~]# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 3627854 Engine version: 1.4.4 Scanned directories: 2 Scanned files: 3 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 7.503 sec (0 m 7 s) Start Date: 2026:05:11 14:17:21 End Date: 2026:05:11 14:17:29 # download trial virus [root@dlp ~]# wget https://files.trendmicro.com/products/eicar-file/eicar.com clamscan --infected --remove --recursive . # just detected and removed /root/eicar.com: Eicar-Test-Signature FOUND /root/eicar.com: Removed. ----------- SCAN SUMMARY ----------- Known viruses: 3627854 Engine version: 1.4.4 Scanned directories: 5 Scanned files: 9 Infected files: 1 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 7.523 sec (0 m 7 s) Start Date: 2026:05:11 14:18:01 End Date: 2026:05:11 14:18:08 |
|
|