Update ClamAV in Ubuntu..

First of all.. Visit the ClamAV website for the latest definitions (you have to right click and choose save link as… on the menu) and save them in your home directory, or just open up a terminal and do this..

wget http://db.local.clamav.net/main.cvd

then..

wget http://db.local.clamav.net/daily.cvd

and..

sudo mv daily.cvd main.cvd /var/lib/clamav

Which will move the newly downloaded files to the correct /var/lib/clamav directory.
Now enter your admin password & you should have completely up to date virus definitions :D

WARNING: This will only work if the ClamAV team use the same link every time for the daily updates?

To keep up to date with the definitions then, open a terminal &

wget http://db.local.clamav.net/daily.cvd

Which will download the latest definitions to your home directory, then..

sudo mv daily.cvd /var/lib/clamav

..to transfer them to the correct directory again.

Just found this out myself and it should help you all out :)

About these ads

14 thoughts on “Update ClamAV in Ubuntu..

  1. Why aren’t you just typing “freshclam” as root (or sudo)??? Also, the included service clamav-freshclam will do this for you at boot time. This process you list hurts my head..

  2. I got the updates and everything, just had to put sudo before wget. Also it did not update the definition in the program though.. it says i have to be root still in the gui part. or how do i do the command line version to run the scan or add those new definitions? freshclam does not work.. im useing ubuntu hardy heron

  3. Freshclam issues: in my experience, freshclam fails because it has uncommented proxy lines in /etc/clamav/freshclam.conf Just comment out these, and it should work just fine.

  4. And thanks again :) nicely done …

    If you do it manually, just create a script to freshen up your clamav main & daily cvd’s. Then you don’t need freshclam
    But… after altering freshclam.conf its working also good … so in the end we have 3 nice solutions :)

    - manually update main&daily
    - make a script that does the manualy part of updating
    - alter freshclam.conf and use freshclam

    NICE :)

  5. Pingback: Joseph Silva » Manually Update ClamAV Virus Definitions

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s