next up previous
Next: AMaViS - "Next Generation" Up: Installation Previous: Testing

Setting up auto-updating

freshclam is a tool, which automates the virus database update process for Clam AntiVirus. You will find more information about it in the section 3.5. It may be used in two ways: Run freshclam (as root) without any parameters to check is it working correctly. If everything is OK, create a log file in /var/log owned by clamav:
	# touch /var/log/clam-update.log
	# chmod 644 /var/log/clam-update.log
	# chown clamav /var/log/clam-update.log
Now, you may run freshclam as a daemon:
	# freshclam -d -c 2 -l /var/log/clam-update.log
It will check for a new database 2 times a day. Please add this line to your startup scripts. The other way is to use the cron daemon. You have to add a similar line to the crontab of root or clamav:
0 8	* * *	/usr/local/bin/freshclam --quiet -l /var/log/clam-update.log
It will check for a new database daily at 8 am. You may need to setup the proxy support on your system. You should set the environment variable $http_proxy, eg.
	export http_proxy="my.proxy.server:8080"
There is also -http-proxy option available.



Tomasz Kojm 2002-10-29