hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Hosting Talk Tutorials : Hosting Security and Technology Tutorials : How to Clam AntiVirus (ClamAV) in CentOS 5 x86_64

Forum Jump

How to Clam AntiVirus (ClamAV) in CentOS 5 x86_64

Reply Post New Thread In Hosting Security and Technology Tutorials Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Join Date: May 2010
Location: Egypt
Posts: 21

How to Clam AntiVirus (ClamAV) in CentOS 5 x86_64


This article describes how to install ClamAV in CentOS 5 via SSH.

First be sure this article for x86_64.

Now log in to ssh :

rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
open /etc/yum.repos.d/rpmforge.repo via nano,pico as you like

nano /etc/yum.repos.d/rpmforge.repo
change enabled 1 to enabled 0

now we will install clamav via yum :

yum -y --enablerepo=rpmforge install clamd
Out put:
HTML Code:
 Package                                   Arch                                   Version                                          Repository                                Size
 clamd                                     x86_64                                 0.96.5-1.el5.rf                                  rpmforge                                 240 k
Installing for dependencies:
 clamav                                    x86_64                                 0.96.5-1.el5.rf                                  rpmforge                                 2.3 M
 clamav-db                                 x86_64                                 0.96.5-1.el5.rf                                  rpmforge                                  25 M

Transaction Summary
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 28 M
Downloading Packages:
(1/3): clamd-0.96.5-1.el5.rf.x86_64.rpm                                                                                                                    | 240 kB     00:00     
(2/3): clamav-0.96.5-1.el5.rf.x86_64.rpm                                                                                                                   | 2.3 MB     00:01     
(3/3): clamav-db-0.96.5-1.el5.rf.x86_64.rpm                                                                                                                |  25 MB     00:09     
Total                                                                                                                                             2.1 MB/s |  28 MB     00:13     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : clamav-db                                                                                                                                                  1/3 
  Installing     : clamav                                                                                                                                                     2/3 
  Installing     : clamd                                                                                                                                                      3/3 

  clamd.x86_64 0:0.96.5-1.el5.rf                                                                                                                                                  

Dependency Installed:
  clamav.x86_64 0:0.96.5-1.el5.rf                                                        clamav-db.x86_64 0:0.96.5-1.el5.rf                                                       

Now start to clamav :

/etc/rc.d/init.d/clamd start
chkconfig clamd on
you will see :
HTML Code:
Starting Clam AntiVirus Daemon: LibClamAV Warning: **************************************************
LibClamAV Warning: ***  The virus database is older than 7 days!  ***
LibClamAV Warning: ***   Please update it as soon as possible.    ***
LibClamAV Warning: **************************************************
now update calnav DB :

chkconfig --list clamd
sed -i 's/Example/#Example/g' /etc/freshclam.conf
now restart calmav :

/etc/rc.d/init.d/clamd restart
out put:
HTML Code:
Stopping Clam AntiVirus Daemon:                            [  OK  ]
Starting Clam AntiVirus Daemon:                            [  OK  ]
no warning

ClamAV Installed Successfully

for full system scan use this command:
clamscan --infected --remove --recursive /
for full home scan use this command:
clamscan --infected --remove --recursive /home
for scanning user account use this command:
clamscan --infected --remove --recursive /home/user
Change user to user you need scan it like MHafez

command to be :
clamscan --infected --remove --recursive /home/MHafez
I hope you Enjoy


Sponsored Links

Similar Threads
Thread Thread Starter Forum Replies Last Post
centos + spamassassin + clam av + vmware ibda12u Employment / Job Offers 6 02-23-2008 02:36 PM
How do I tell AMD 64 and CentOS 4.1 x86_64 meknow Dedicated Server 1 10-01-2005 05:32 AM
clamav antivirus juhair Hosting Security and Technology 1 06-10-2005 02:33 AM
ClamAV antivirus on windows2003 efeito Hosting Software and Control Panels 0 03-23-2004 02:05 PM
Easy Mailscanner + Clam Antivirus + SpamAssassin junaidkhan Hosting Security and Technology 2 08-20-2003 08:59 AM

Related posts from
Title Type Date Posted
Buyer Beware: Scammers Trick Mobile Users into Buying Fake Antivirus Apps Web Hosting News 2014-05-16 17:07:28
Linux Malware Operation Windigo Infects 25,000 Web Servers Web Hosting News 2014-03-19 11:44:53
Red Hat Takes Active Role in CentOS Project to Drive New Technology Adoption Web Hosting News 2014-01-08 12:00:22
Solar VPS Becomes Official Mirror for Centos and Ubuntu Web Hosting News 2013-04-16 11:03:34
Inerol Solutions Launches XEN VPS Hosting Service Web Hosting News 2014-05-23 15:46:53

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?