AntiVirus Server

1. What is Clam AntiVirus (ClamAV) Server?
2. How do I install ClamAV AntiVirus Server?
3. How do I manually update the virus databases?
4. How do I manually scan files/folders for viruses?
5. How do I automatically scan files/folders for viruses?
1.

What is Clam AntiVirus (ClamAV) Server?

Clam AntiVirus (ClamAV) is an anti-virus toolkit for Unix/Linux operating systems. Typically ClamAV is intergrated with email servers and can also be used to scan individual files. Linux rarely suffers from viruses and other nasties that infect other operating systems, so most likely you don't need to install ClamAV.

2.

How do I install ClamAV AntiVirus Server?

  1. Read How do I add Universe and Multiverse?

  2. Install the clamav package with Synaptic (See How do I use Synaptic to install packages?)

    Utilities (universe) > clamav

3.

How do I manually update the virus databases?

4.

How do I manually scan files/folders for viruses?

  1. Read How do I install ClamAV AntiVirus Server?

  2. sudo clamscan -r /location_of_files_or_folders

5.

How do I automatically scan files/folders for viruses?

  1. Read How do I install ClamAV AntiVirus Server?

  2. export EDITOR=vim && 
    sudo crontab -e

  3. The format “* * * * *” below refers to: minute hour date month year

    Append the following line at the end of file

    00 00 * * * sudo clamscan -r /location_of_files_or_folders
  4. Save the edited file