Axel C. Frinke wrote: > Hello, > > since I am only connected to the Internet by a 56K Modem, that topic > is also interesting for me: > > On 2007-07-25 13:01, Milich Gregory A (Greg) wrote: > >> It wasn't clear to me (from the documentation) if freshclam did anything >> Special to "install" the cvd files. If I can just periodically download >> the cvd files from the clamav site and manually put them in the db >> directory without running anything to "install" them then I'll do it >> that way. >> > > Does fleshclam actually nothing else but downloading main.dvd and > daily.dvd and storing it in /var/lib/clamav? > It does some other things too. Like making sure clamd doesn't get corrupt/incomplete db files, by locking db dir during update and using checksum. And notifying clamd after a succesful update, so that the new db is used right away. > I recently ran freshcalm via my dialup connection and it started to > download main.dvd. After about 15 minutes (33% was downloaded) a > checksum error occured and freshcalm restarted the download. Thus I > prefer to download main.dvd and daily.dvd to my USB stick and to copy > it later to /var/lib/clamav. > > If I understood this thread right, this method works correct. But what > about the checksum check of freshclam? > > As Edwin mentioned, you need to do it manually. For verifying cvd files, you can use "sigtool -i FILE". It will print "ERROR: cvdinfo: Verification: MD5 verification error" when the checksum in incorrect.
Another method would be to put db files (can be .vcd or third party signatures, like the one from sanesecurity/MSRBL) on a separate directory, and run "clamscan -d /PATH/TO/DB/DIR /SOME/TEST/FILE". clamscan will exit with non-zero error value (50, I think) if the db file is corrupted. Regards, Fajar _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://lurker.clamav.net/list/clamav-users.html