To install on CentOS using yum
create the file: /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag/
gpgcheck=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
enabled=1
Then do:
# yum install clamd.i386
Restart the clamd service:
# /etc/rc.d/init.d/clamd restart
--
KieranEgan - 07 Apr 2008
I just did:
# yum update clamd ...and it all went wrong.
The problem was it installed the new binaries in a different location, so now I had two versions (see
http://www.clamav.org/support/faq/)
Doing:
# whereis clamscan and
# whereis freshclam showed the problem. The solution was the following set of commands run as root. Cut and paste into a shell script or type in manually.
#! /bin/sh
# rename the old binaries
mv /usr/local/bin/clamscan /usr/local/bin/clamscan.old
mv /usr/local/bin/freshclam /usr/local/bin/freshclam.old
mv /usr/local/bin/clamdscan /usr/local/bin/clamdscan.old
# Create links to the new ones in /usr/local/bin
ln -s /usr/bin/clamscan /usr/local/bin/clamscan
ln -s /usr/bin/freshclam /usr/local/bin/freshclam
ln -s /usr/bin/clamdscan /usr/local/bin/clamdscan
# There was a fourth new clam binary - /usr/bin/clamconf
ln -s /usr/bin/clamconf /usr/local/bin/clamconf
# Update virus database and go
freshclam
--
KieranEgan - 09 May 2008
</center-->