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.
Adding RPMforge to Yum

1. Launch Firefox and go to http://dag.wieers.com/rpm/FAQ.php#B2. Click on the package appropriate for your version of Red Hat Enterprise Linux or CentOS.Installing Clam AntiVirus
If you prefer not to use the GUI tool below, you can also install the Clam AntiVirus by typing in yum install clamd in a Terminal window.

3. Select the latest version of clamd then click Apply. Next click on Continue until it proceeds with the installation.
5. Start the clamd service. Learn how to stop and start services here.«« Previous: How to Install MailScanner
Next: Integrate MailScanner into Postfix »»
***
Posted on 4/23/2007 and last updated on 10/25/2008
Filed under Anti-spam/Anti-virus , CentOS 5 , Red Hat Enterprise Linux 5
Share This







November 2nd, 2007 at 4:41 am
Hello,
i have the following error in my clamd.log (Unable to open file or directory).
The clamd daemon dont’t start.
[root@mx1 tmp]# /etc/init.d/clamd restart
Stopping Clam AntiVirus Daemon: [FAILED]
Starting Clam AntiVirus Daemon: [ OK ]
[root@mx1 tmp]# /etc/init.d/clamd status
clamd dead but subsys locked
Kind regards
Wolfgang
November 3rd, 2007 at 9:03 am
Hi,
You have a misconfiguration in /etc/clamd.conf. I was able to replicate your problem by changing the value of TemporaryDirectory to /var/tmpx. The log file should give you more clues as to what the exact problem might be. Otherwise, I suggest you start with the original clamd.conf and apply your settings one line at a time.
January 23rd, 2008 at 4:46 pm
My company is NOT using a GUI with out CentOS 5. No Firefox. And I don’t think I want to modify the yum configuration to go looking for things that aren’t officially approved by CentOS.
But I would like to install ClamAV. How can I manually get the correct binary package?
January 23rd, 2008 at 4:48 pm
First sentence above should have said “… not using a GUI with _our_ CentOS 5.”
January 24th, 2008 at 1:32 am
Goto http://dag.wieers.com/rpm/packages/clamav/ and download the latest version of clamav, clamd and clamav-db for Red Hat EL 5. To install them type in “yum localinstall clamav-xxx.rpm clamd-xxx.rpm clamav-db-xxx.rpm” or the simpler “yum localinstall *.rpm” if the current directory only contains clamav rpms. Make sure the version number is the same for all three files, otherwise you’ll get dependency errors and it won’t install.
April 14th, 2008 at 8:36 am
Wolfgang^
i found answer here:
http://www.centos.org/modules/newbb/viewtopic.php?topic_id=12315
setsebool -P clamd_disable_trans=1
April 17th, 2008 at 7:11 am
i can’t install clamd, mising libcrypt*, how cant it be solved?
May 9th, 2008 at 5:41 am
after installing rpmforge , i am unable to open my Add/remove software window. It is giving an error:”Cannot find a valid baseurl for repo: rpmforge”.
Pls guide how to go forward.
shyam
May 9th, 2008 at 1:27 pm
You can fix it by changing the extension of the file /etc/yum.repos.d/rpmforge.repo to remove rpmforge. You can install ClamAV manually using the steps I described in one of the comment I made above.