Upgrading ClamAV is very straight forward. We do not have to redo any configuration files. All we have to do is remove the previous version and install the new one.
The first thing to do is get the latest source from http://www.clamav.net.
Now we configure our build exactly the same as when we first installed clamav.
You can now build with:
If all has gone well, we are ready to remove the previous install of clamav. Before we do that however we should shut down the clamd process and the freshclam process we have running for the mail server.
sudo launchctl unload /Library/LaunchDaemons/com.diymacserver.clamav.plist
We now have to remove the libraries and binaries of the previous install. We will not however removed our virus definitions database or the configuration files. Once done we will install the new version.
sudo make install
Now that we have replaced all the binaries and libraries, we should run freshclam once by hand to make sure everything is ok before restarting the daemon processes for the email server.
If all is well, the last thing to do is restart the daemon processes with these two commands :
sudo launchctl load /Library/LaunchDaemons/com.diymacserver.clamav.plist