How to install CLAMAV with update DB script and Scanning on CentOS?
Installation/Configuration:
So the yum is now setup and you can proceed to install Clamav.
yum install clamav |
Congratulations Clamav is installed on your machine.
Update Clamav database:
Clamav db can be update using freshclam.
/usr/bin/freshclam |
Cronjob for Clamav to scan /home directory:
You may know that clamav is not designed for real time scanning but is being highly used in production environment for batch scanning. I am going to schedule the clamav scanning at midnight so that user may not experience low performance during the scanning.
In Clamav clamscan is a command line anti-virus scanner, details of clamscan can be found in man pages of clamscan (man clamscan).