To install Clam AntiVirus (ClamAV), we are going to use the precompiled binaries from Dag Wieers RPM packages for Red Hat, RHEL, CentOS and Fedora. To do this, we are going to configure Yum to look for the ClamAV packages in Dag’s repository.

Adding Dag Wieers RPM Repository to Yum

CentOS 4 Terminal1. Click Applications, select System Tools and click Terminal. This will launch the Terminal window. Type in the command cd /etc/yum.repos.d and press Enter. This will bring us to the Yum repository configuration directory.
CentOS 4 Terminal2. From this directory download the Yum repository configuration file by typing in the command
wget and press Enter. This is what the file dag-clamav.repo looks like.

Installing Clam AntiVirus

CentOS 4 Terminal3. To install ClamAV AntiVirus, type in the command
yum install clamav clamav-devel clamd and press Enter. When asked to confirm download, type in y and press Enter.

Using Clam AntiVirus

CentOS 4 Terminal4. To use ClamAV AntiVirus, type in the command clamscan and press Enter.
CentOS 4 Terminal5. To update the virus database, type in the command freshclam and press Enter.

Visit the forum to ask for help or to give a comment.

Posted on 3/14/2007 and last updated on 11/7/2009
Filed under Anti-spam/Anti-virus , CentOS 4 , Red Hat Enterprise Linux 4