r2 - 09 May 2008 - 01:10:54 - KieranEganYou are here: ClamAV Wiki >  Main Web  >  ClamPackages > CentOSInstall

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-->

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding ClamAV Wiki? Send feedback