sudo rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
sudo yum --enablerepo=rpmforge install clamd
Dependencies Resolved
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
clamd i386 0.95.2-4.el5.rf rpmforge 213 k
Installing for dependencies:
clamav i386 0.95.2-4.el5.rf rpmforge 2.7 M
clamav-db i386 0.95.2-4.el5.rf rpmforge 21 M
Transaction Summary
=============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 24 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): clamd-0.95.2-4.el5 100% |=========================| 213 kB 00:01
(2/3): clamav-0.95.2-4.el 100% |=========================| 2.7 MB 00:04
(3/3): clamav-db-0.95.2-4 100% |=========================| 21 MB 00:26
sudo /sbin/chkconfig clamd on
sudo /sbin/service clamd start
sudo freshclam
0 2 * * * /usr/bin/freshclam -quiet
#0 3 * * * clamscan -r /var/www/html
Reference: http://d.hatena.ne.jp/littlebuddha/20080430/1209543993