Установка и работа с ClamAV
Установка:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | $ cd /usr/ports/security/clamav $ make showconfig make install ===> The following configuration options are available for clamav-0.95.1: ARC=on "Enable arch archives support" ARJ=on "Enable arj archives support" LHA=on "Enable lha archives support" UNZOO=on "Enable zoo archives support" UNRAR=on "Enable rar archives support" MILTER=off "Compile the milter interface" LDAP=off "libmilter was built with LDAP" ICONV=off "Enable ICONV support" STDERR=off "Print logs to stderr instead of stdout" EXPERIMENTAL=off "Build experimental code" ===> Use 'make config' to modify these settings $ make install clean |
Обновление антивирусных баз выполняется командой
$ freshclam
Или демоном, контролируемым сценарием:
/usr/local/etc/rc.d/clamav-freshclam
Проверка файлов производится самостоятельной командой
$ clamscan
или командой
$ clamdscan
работающей совсместно с демоном clamd, который контролируется сценарием
/usr/local/etc/rc.d/clamav-clamd
