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 http://www.linux-mail.info/files/dag-clamav.repo 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.

Testing Clam AntiVirus

CentOS 4 Terminal4. To test ClamAV AntiVirus, type in the command clamscan and press Enter.
 

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


Share This