Run a quick update by running the following command in a terminal window before installing ClamAv.
sudo apt update
sudo apt upgrade
To install ClamAV, run the following command.
sudo apt install clamav clamav-daemon
Install optional ClamAv TK (ClamAv GUI) by running the following command.
sudo apt install clamtk
To update the ClamAv Virus Definition Database, you must first stop the “clamav-freshcalm’ service by running the following command.
sudo systemctl stop clamav-freshclam
Update your virus definition database by running the following command.
sudo freshclam
Start the ‘clamav-freshclam’ service after the update by running the following command.
sudo systemctl enable clamav-freshclam --now