This is an old revision of the document!
!!! Требуется не меньше 1024Mb RAM !!!
[gate:~] # pkg install clamav [gate:~] # rehash
root@gate:~# apt install clamav-daemon
[gate:~] # cat /usr/local/etc/clamd.conf
root@gate:~# less /etc/clamav/clamd.conf
[gate:~] # cat /etc/rc.conf
... clamav_freshclam_enable=yes clamav_clamd_enable=yes
[gate:~] # service clamav-freshclam start [gate:~] # ls -l /var/db/clamav/ [gate:~] # service clamav-clamd start [gate:~] # ls -l /var/run/clamav/clamd.sock
root@gate:~# service clamav-freshclam status root@gate:~# ls /var/lib/clamav/ root@gate:~# service clamav-daemon start root@gate:~# ls -l /var/run/clamav/clamd.ctl
$ cd /tmp $ wget http://val.bmstu.ru/unix/virus.zip $ clamdscan virus.zip
$ cat /boot/config-`uname -r` | grep FANOTIFY # cat /etc/clamav/clamd.conf
... User root ScanOnAccess yes OnAccessIncludePath /home OnAccessExcludeUID 0 OnAccessPrevention yes ...
# tail -f /var/log/clamav/clamav.log debian# cat /etc/logrotate.d/clamav-daemon