Ubuntu – How to manually import the clamav virus definition file


I would like to manually download the main.cvd for clamav and then import it from a local location. I see this is possible using clamav-clamfresh if I configure it to use DatabaseMirror machine1.example.com but that requires running an http webserver on port 80 of machine1.example.com which I don't want to do.

If I get the main.cvd file onto a machine is there some way to manually trigger the import?

Best Answer

  • You could probably do a script like so to download the updated file then copy it over to the proper location for an update manually.

    Script contents

    wget http://database.clamav.net/main.cvd
    sudo cp main.cvd /var/lib/clamav/
    sudo chown clamav:clamav /var/lib/clamav/main.cvd
    sudo chmod 644 /var/lib/clamav/main.cvd