clamav on OmniOS

  • Posted on: 8 January 2024
  • By: tomww

In just unter 5 Minutes!

sudo -i

root# pkg install clamav

root# cp -p /etc/freshclam.conf.example /etc/freshclam.conf
Edit the file and remove the String "Example"

root# mkdir /var/clamav

root# freshclam

ClamAV update process started at Mon Jan 8 00:53:45 2024
WARNING: Your ClamAV installation is OUTDATED! # promise - will build a newer clamav in the next few days, need it myself for the email server
WARNING: Local version: 0.103.2 Recommended version: 0.103.11
DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
daily database available for download (remote version: 27147)
Time: 18.0s, ETA: 0.0s [========================>] 59.67MiB/59.67MiB
Testing database: '/var/clamav/tmp.1fed7a8c8d/clamav-c3728bc631bea4d56b6e78021efe3733.tmp-daily.cvd' ...
Database test passed.
daily.cvd updated (version: 27147, sigs: 2050511, f-level: 90, builder: raynman)
main database available for download (remote version: 62)
Time: 47.8s, ETA: 0.0s [========================>] 162.58MiB/162.58MiB
Testing database: '/var/clamav/tmp.1fed7a8c8d/clamav-e87b0f4cb0cdf6516f12e9e406911db4.tmp-main.cvd' ...
Database test passed.
main.cvd updated (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode database available for download (remote version: 334)
Time: 0.4s, ETA: 0.0s [========================>] 285.12KiB/285.12KiB
Testing database: '/var/clamav/tmp.1fed7a8c8d/clamav-d04ace5988917ca45240602341ee44b4.tmp-bytecode.cvd' ...
Database test passed.
bytecode.cvd updated (version: 334, sigs: 91, f-level: 90, builder: anvilleg)

root# clamscan somefiel.tar
/root/somefile.tar: OK

----------- SCAN SUMMARY -----------
Known viruses: 8682251
Engine version: 0.103.2
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 1.52 MB
Data read: 0.56 MB (ratio 2.71:1)
Time: 31.361 sec (0 m 31 s)
Start Date: 2024:01:08 00:55:43
End Date: 2024:01:08 00:56:14