Author Topic: ClamAv  (Read 2005 times)


  • Newbie
  • *
  • Posts: 25
    • View Profile
« on: April 17, 2024, 01:38:57 pm »
It is possible to install ClamAV on the Cosmo - more needed now that the repos have not been updated.

To do this:

sudo apt install clamav
sudo apt install clamav-daemon

trying sudo freschclam does not download  / update the virus signatures as it is running in the background

you can stop the service and try

sudo systemctl stop clamav-freshclam.service

and then try

sudo freshclam

but this did not work for me. It was unable to connect to download the virus signatures.

I suspect its because the repo version of clamav is old.

Therefore you have to download the main.cvd virus repo file manually

Wget does not actually work for this as ClamAV block now because of the multitude of docker instances trying to download this way so you have to do it manually from the browser:

Once you have the file you can put it where clam expects it:

sudo cp main.cvd /var/lib/clamav
sudo chown clamav:clamav /var/lib/clamav/main.cvd
sudo chmod 644 /var/lib/clamav/main.cvd

 now you can sudo clamscan <directory path you wish>