
- #CLAMAV VIRUS DATABASE HOW TO#
- #CLAMAV VIRUS DATABASE INSTALL#
- #CLAMAV VIRUS DATABASE UPDATE#
- #CLAMAV VIRUS DATABASE SOFTWARE#
- #CLAMAV VIRUS DATABASE DOWNLOAD#
NOTE: Scanning large directories or even whole systems can take quite some time. Likewise, we can scan the whole system by simply passing the root directory as an argument. Of course it found 1 infected file because we downloaded the test virus in an earlier example. SCAN SUMMARY -Īs you can see we scanned 3155 directories and 55746 files. Here is the summary output of the first scan on my home directory. With this basic knowledge we can run a simple scan on our home directory like so: ~]$ clamscan -r /home/savona/ NOTE: You can also use the -i option to show only infected files and limit the output. Now it shows that we scanned 2 directories and 36 files. Let's try the same command but this time pass the -r option to clamscan telling it to scan into all directories. In order to scan a directory and all of it's sub-directories we need to pass the recursive flag. However, I have a folder containing some vacation pictures inside the Pictures directory. home/savona/Pictures/D3E36D4B_source.jpg: OKĪs you can see in the summary we now scanned 1 directory which contained 25 files. Here is an example of scanning the Pictures directory. Simply pass the directory as an argument just like you did with the file. Scanning directories with clamscan is very intuitive.

Scanning Directories (and sub-directories) From the Command Line
#CLAMAV VIRUS DATABASE HOW TO#
NOTE: In the next section we will discuss how to take action on the infected file. It also says there is one infected file in the scan summary. home/savona/eicar_com.zip: _HDB-1 FOUNDĪs you can see, clamscan now shows a FOUND message instead of the OK message. Once the file is downloaded we simple pass the name as an argument to clamscan and see what happens. This will help familiarize ourselves with what to expect if there is a virus detected.
#CLAMAV VIRUS DATABASE DOWNLOAD#
Let's download a "test virus" from and run a scan against it. Once the scan completes, you will be presented with a scan summary that provides important information. home/savona/Desktop/TEMP/bumper1.jpg: OK If you want to scan a single file simple pass it as a argument to the clamscan utility. Virus Scanning Files from the Linux Command LineĬlamAV comes with a command line scanning tool called clamscan. However, keep reading to learn how to scan for viruses using the command line and GUI. It seems like you get much more feedback and for some reason it seems to run more efficiently. I much prefer running the scan from the command line. You can run a scan from either the command line, or the GUI.
#CLAMAV VIRUS DATABASE INSTALL#
Now that we have a basic install of ClamAV, ClamTk, and the virus definition signatures it's time to run our first scan. How to Scan Files and Directories with ClamAV Set the clamav-freshclam service to start on boot: ~]$ sudo systemctl enable clamav-freshclamĪlternatively, you can set freshclam to run whenever you like as a cron job.

Start the clamav-freshclam service: ~]$ sudo systemctl start clamav-freshclam Let's start the service and enable it at boot. The easiest way to keep the signatures updates is to use the clamav-freshclam service.
#CLAMAV VIRUS DATABASE UPDATE#
If you do not update the signatures often you can be using an old database. The ClamAV team says they update the virus signature database approx twice daily.
#CLAMAV VIRUS DATABASE SOFTWARE#
Select the Software icon to open the application.Ĭonfiguring ClamAV Automatic Signature Database Updates Simply open the Software Center by hitting the Super key and search for software. If you prefer to install applications from the GUI you can use the Gnome Software Center. Just use apt like so: sudo apt install clamav clamtk Installing ClamAV Using the Gnome Software GUI Installing on Debian based systems is just as easy. ~]$ sudo dnf install clamav clamtk Installing ClamAV on apt/deb Based Systems (Ubuntu, Debian, Mint, Kali, etc.) To install ClamAV and it's GUI interface on rpm based systems like fedora, simply use dnf and specify the following packages. Installing ClamAV on rpm Based Systems (Fedora, Red Hat, etc.) This is easily accomplished through your package manager. Let's start by installing ClamAV and it's GUI interface ClamTK.

Using the Command Line to Take Action on Infected Files.Virus Scanning Files and Folders from the ClamTK GUI.Scanning Directories (and sub-directories) From the Command Line.Virus Scanning Files from the Linux Command Line.How to Scan Files and Directories with ClamAV.Configuring ClamAV Automatic Signature Database Updates.Updating the ClamAV Virus Definition Database.Installing ClamAV Using the Gnome Software GUI.Installing ClamAV on apt/deb Based Systems (Ubuntu, Debian, Mint, Kali, etc.).Installing ClamAV on rpm Based Systems (Fedora, Red Hat, etc.).
