Primal Habits
It is currently Wed Mar 29, 2017 9:07 am


Feed

Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Aug 19, 2011 9:13 am 
Offline
User avatar

Joined: Sun Apr 25, 2010 1:02 pm
Posts: 115



How to install ClamAV on Linux / Centos 5.5

This hopefully should help with your installation of ClamAV.

How to install.
#1. Download the file using wget.
$ sudo wget http://pkgs.repoforge.org/clamav/clamav ... x86_64.rpm
$ sudo wget http://pkgs.repoforge.org/clamav/clamav ... x86_64.rpm

The following commands should install it.
$ sudo rpm -ivh clamav-0.97.2-1.el5.rf.x86_64.rpm
$ sudo rpm -ivh clamav-db-0.97.2-1.el5.rf.x86_64.rpm

Now that it is installed there are a few things we need to know about ClamAV and perform. First thing to do would be to update the definitions.
To do this run the command freshclam.
Freshclam will require an internet connection to download & update all the new virus definitions.
All that should need to be done is type the command freshclam and the rest should be automatic.

#2. To run ClamAV and show the infected files type the following command.
clamscan -ri /home

#3. To remove the infected files and emails etc... Type the following command.
clamscan -ri --remove /home

#4. To run as a daily Cron Job.
To run ClamAV as a Cron Job (daily automatically scan)Type the following command from your command line.
crontab -e f
Then you should add the following command line and then save the file.
This should add it to my root crontab for the below example.
05 2 * * * root clamscan -R /var/www
This should run the Cron Job daily at 2.05 AM scanning the public_html files.
You should be able to change the folder to whichever folder you prefer.
00 10 * * * * root freshclam
This command will update ClamAV database at 10 am every day.

Good Luck!

Note: For different Operating Systems such as i386, you should be able to find the current RPM at the following link. (Or if you would like the current RPM)
http://pkgs.repoforge.org/clamav/

Current upgrade instructions can usually be found at the following URL.
http://wiki.clamav.net/Main/UpgradeInstructions

Current uninstall instructions can usually be found at the following URL.
http://wiki.clamav.net/Main/UninstallClamAV

_________________
Check Out RouterHead8080 T.V.



Share on FacebookShare on TwitterShare on TuentiShare on SonicoShare on FriendFeedShare on OrkutShare on DiggShare on MySpaceShare on DeliciousShare on Technorati
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours [ DST ]


Related topics
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. How do I install RKHunter on Linux ?

RouterHead8080

0

1197

Fri Aug 19, 2011 12:29 am

RouterHead8080 View the latest post

There are no new unread posts for this topic. How to tell which version of Linux CentOS you are using.

RouterHead8080

0

1367

Fri Aug 19, 2011 12:40 am

RouterHead8080 View the latest post

There are no new unread posts for this topic. MySQL config file location - Redhat Linux Centos Server

RouterHead8080

0

18329

Sun Apr 21, 2013 10:05 pm

RouterHead8080 View the latest post

There are no new unread posts for this topic. Setting cron job for clamav

RouterHead8080

0

1320

Tue Nov 22, 2011 11:28 am

RouterHead8080 View the latest post

There are no new unread posts for this topic. Suspect.Bredozip-zippwd-10 Spam Virus / ClamAV

RouterHead8080

0

2030

Fri Aug 19, 2011 10:41 am

RouterHead8080 View the latest post

 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron

Affiliates    Terms of use    Privacy policy   

Primal Habits, a Sceptersoft Company
Copyright © 2010 - 2017 Sceptersoft LLC. All rights reserved.