How to install clamav

From Salix OS
Jump to: navigation, search

Contents

About ClamAV

ClamAV is an open source (GPL) antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats. It is the de facto standard for mail gateway scanning. It provides a high performance mutli-threaded scanning daemon, command line utilities for on demand file scanning, and an intelligent tool for automatic signature updates. The core ClamAV library provides numerous file format detection mechanisms, file unpacking support, archive support, and multiple signature languages for detecting threats. The core ClamAV library is utilized in Immunet 3.0, powered by ClamAV, which is a fast, fully featured Desktop AV solution for Windows.

Installing clamav

salix-13.1

salix-13.37

Compiling clamav

If you want to compile clamav then

  • download everything from http://people.salixos.org/djemos/clamav/clamav-salix-13.37/
  • cd to download directory and run fakeroot slkbuild -X
  • After that a new binary package clamav-0.97.1-i486-1dj.txz will be created.
  • As root type in a xterm upgradepkg --reinstall --install-new clamav-0.97.1-i486-1dj.txz

Run clamav

Start clamav as root with the command

service start clamav

or

/etc/rc.d/rc.clamav start

to start clamav at system boot:

chmod a+x  /etc/rc.d/rc.clamav

Update virus database

  • To update virus database just type as root freshclam in a xterm
  • After this you are ready to use clamav and check for viruses.

Installing Bogofilter

Bogofilter is a mail filter that classifies mail as spam or ham (non-spam) by a statistical analysis of the message's header and content (body). The program is able to learn from the user's classifications and corrections.

To install Bogofilter run as root

 slapt-src -i bogofilter

Next open kmail and Go to Tools -> Anti-Spam Wizard and Tools-> Anti-Virus Wizard to set up Virus and Spam respectively.