ClamavUpdate

Last Updated : Apr 05, 2018 |

Syntax

Run the following command as a super-user:

 sudo ClamavUpdate=<updatemethod>

Where <updatemethod> can be one of the following:

  • wget — Initial configuration is done in this mode. When this mode is used, the probability of successful updates in your network are high.

  • freshclam — Robust and best mode to use, as it has additional mirror logic.

  • manual — Used to disable daily updates when there is no network connection.

Description

Use ClamavUpdate to identify which method is most suitable for automatic virus and malware definition updates, or to perform a definition update manually if Internet connection is not available in your network.

To identify which method is best suitable for automatic updates, do the following:

  • Start by verifying that your DNS servers are setup correctly.

  • Then, test the freshclam method. If this method works, use this as the automatic update method for your daily updates. This method is faster and more robust due to additional mirror logic in it.

  • If the freshclam method does not work, use the wget method. This method may sometimes be slow, but it works in most networks as long as the DNS settings are correctly configured on your server.