Difference between revisions of "ClamAV"

From ArchWiki
Jump to: navigation, search
m (Clam AV installation)
Line 19: Line 19:
 
* Edit /etc/rc.conf and write clamav into the list of daemons, if you like to start clamav automaticaly when booting.<br><br>
 
* Edit /etc/rc.conf and write clamav into the list of daemons, if you like to start clamav automaticaly when booting.<br><br>
  
Note: If you get the following messages after running freshclam<br>
+
==== Clam AV errors & solutions ====
 +
* If you get the following messages after running freshclam:
 
<pre>
 
<pre>
 
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/lib/clamav/clamd.sock
 
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/lib/clamav/clamd.sock
Line 29: Line 30:
 
# chown clamav:clamav /var/lib/clamav/clamd.sock
 
# chown clamav:clamav /var/lib/clamav/clamd.sock
 
</pre>
 
</pre>
 +
 +
 +
* If you get the next error when starting /etc/rc.d/clamav:
 +
<pre>
 +
LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav
 +
ERROR: Not supported data format
 +
</pre>
 +
Just try to run freshclam as root:
 +
freshclam -v

Revision as of 11:37, 14 December 2008

Template:I18n links start Template:I18n entry Template:I18n entry Template:I18n links end

Clam AV installation

  • Grab it
    pacman -Sy clamav
  • Configure it
    1. Edit /etc/clamav/clamd.conf, /etc/clamav/freshclam.conf and comment out the Example flag
    2. Edit /etc/conf.d/clamav and change the start options from "no" to "yes"
# change these to "yes" to start
START_FRESHCLAM="yes"
START_CLAMD="yes"
  • Edit /etc/rc.conf and write clamav into the list of daemons, if you like to start clamav automaticaly when booting.

Clam AV errors & solutions

  • If you get the following messages after running freshclam:
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/lib/clamav/clamd.sock
connect(): No such file or directory

Run the following commands as root:

# touch /var/lib/clamav/clamd.sock
# chown clamav:clamav /var/lib/clamav/clamd.sock


  • If you get the next error when starting /etc/rc.d/clamav:
LibClamAV Error: cli_loaddb(): No supported database files found in /var/lib/clamav
ERROR: Not supported data format

Just try to run freshclam as root:

freshclam -v