Install Clamav AntiVirus2020/11/02 |
Install Clam AntiVirus to protect your System from 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 Mon Nov 2 12:29:30 2020 daily database available for download (remote version: 25975) Time: 3.5s, ETA: 0.0s [========================>] 108.74MiB/108.74MiB Testing database: '/var/lib/clamav/tmp.81b96f2895/clamav-54d7775d3b8550e2bc7f996bb7ae0a3a.tmp-daily.cvd' ... Database test passed. daily.cvd updated (version: 25974, sigs: 4337524, f-level: 63, builder: raynman) main database available for download (remote version: 59) Time: 4.4s, ETA: 0.0s [========================>] 112.40MiB/112.40MiB Testing database: '/var/lib/clamav/tmp.81b96f2895/clamav-b7b77a89c017973a50595a745c40a026.tmp-main.cvd' ... Database test passed. main.cvd updated (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr) bytecode database available for download (remote version: 331) Time: 0.1s, ETA: 0.0s [========================>] 289.44KiB/289.44KiB Testing database: '/var/lib/clamav/tmp.81b96f2895/clamav-eef0b796494e3e2a1842d002e1720934.tmp-bytecode.cvd' ... Database test passed. bytecode.cvd updated (version: 331, sigs: 94, f-level: 63, builder: anvilleg) |
[2] | Try to scan the Fedora Server. |
# scan [/home] [root@dlp ~]# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 8930869 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: 18.307 sec (0 m 18 s) Start Date: 2020:11:01 19:30:30 End Date: 2020:11:01 19:30:49[root@dlp ~]# clamscan --infected --remove --recursive . # just detected and removed ./eicar.com: Win.Test.EICAR_HDB-1 FOUND ./eicar.com: Removed. ----------- SCAN SUMMARY ----------- Known viruses: 8930869 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: 17.941 sec (0 m 17 s) Start Date: 2020:11:01 19:31:24 End Date: 2020:11:01 19:31:41 |
|