Upgrade ClamAV from cPanel

by dt on September 6th, 2009

I asume you have a server with WHM/cPanel and you’ve already installed clamav (if not, do it from WHM -> Manage Plugins -> clamavconnector). Sometimes cPanel delay updating ClamAV to the latest version, so if you want to manually upgrade it, this is what to do:

First, set the update location to one near you:

replace 'DatabaseMirror database.clamav.net' 'DatabaseMirror db.US.clamav.net' -- /etc/freshclam.conf
freshclam

If you receive complains about an obsolate clamav version, you shoul upgrade to latest one. Let’s say you have 0.95.2 and the latest is 0.95.3

cd /usr/local/cpanel/modules-install/clamavconnector-Linux-x86_64/
cd /usr/local/cpanel/modules-install/clamavconnector-Linux-i686/
replace 'AVV=0.95.2' 'AVV=0.95.3' -- install
wget http://downloads.sourceforge.net/clamav/clamav-0.95.3.tar.gz
./install

That’s all!

Updated on Sep, 6 2009 – links updated to latest clamav version

shorturl: