
Launch it by running the following command in the terminal: clamtk Scanning with ClamTK is simpler than with ClamAV. Install ClamTKĬlamTK can be installed by running the following command: sudo apt-get install clamtk ClamTK does not work in a terminal as it is a GUI wrapper for ClamAV. SCAN SUMMARY -ĬlamTK is a GUI for ClamAV and is designed to streamline the scanning process for systems with a desktop manager or window manager.
If you want to scan the entire system, run the following command: sudo clamscan -i -r -remove /Īfter the scan is completed, a summary is displayed. To learn more about the commands you can use with clamscan check the manual.
-r: recursive scan, all the subdirectories in the directory are scanned. You can get started by scanning a particular directory.įor example, if you want to scan the /etc/ directory for infected files, run the following command: sudo clamscan -i -r -remove /etc Scanning with ClamAV is simple and can be invoked by running the clamscan command in the terminal. You can now update the signature database by running the freshclam command: sudo freshclamĪfter the signature database has been updated you can now start the freshclam service by running the following command: sudo systemctl start clamav-freshclam Do this by running the following command: sudo systemctl stop clamav-freshclam To update your signature database you need to stop the freshclam service. It is recommended to keep your database up to date on a regular basis. In order to perform scans with ClamAV, you must have an active and updated signature database. The first service you want to start is the freshclam service which is responsible for updating the signature database. Install the ClamAV utilities by running the following command: sudo apt install clamav clamav-daemonĪfter the installation, you can check the version of ClamAV installed by running the following command: clamscan -versionīefore you can get started with any scanning, you need to ensure that all the relevant ClamAV services and daemons are running. ClamAV requires the clamav utility and the clamav-daemon for management.
The instructions in this guide show apt examples and can be adapted for CentOS with yum. You can install ClamAV with the aptitude package manager on Debian and Ubuntu or with the yum package manager on CentOS. ClamAVĬlamAV is an open source anti-virus toolkit that is available for Linux, MacOS, and Windows. This guide teaches you how to use ClamAV, ClamTK, and rkhunter for anti-virus and rootkit detection to secure your server.