I never understood why ClamAV isn’t available through the repositories because it is a great package.
So, for those of you on CentOS or Redhat systems, here’s how to get ClamAV on Redhat or CentOS…
First, we must setup access to the repository, to do this we need to get the RPM package for the repository for our architecture.
You can do this here:
So if I’m running Redhat or CentOS 5 on a 64-bit system with a 64-bit version of either operating system I would run:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
Now that we’ve added the repository and gotten the package lists from them, let’s install ClamAV!
yum install clamav-db clamav clamd
up2date -i clamav-db clamav clamd
Next we need to edit our clamd.conf file and change configuration values a bit in /etc/clamd.conf:
TCPAddr 127.0.0.1 TCPSocket 3310 User root MaxThreads 30
Finally, start or restart clamd:
That’s it, you’ve installed clamAV on CentOS or RedHat (this assumes you’re NOT installing for a cPanel/WHM server).