Official homepage: http://www.clamav.net/
The latest version is 0.88. You must use the latest version to upgrade the virus database.
System Requirements: refer to the original official document below
Quote:
Requirements
The following elements are required to compile ClamAV:
Zlib and zlib-devel packages
GCC compiler Suite (both 2.9x and 3.x are supported)
The following packages are optional but highly recommended:
Bzip2 and bzip2-devel Library
Gnu mp 3
It's very important to install the GMP package because it allows freshclam to verify the digital signatures of the virus databases. if freshclam was compiled without GMP support it will display "Security Warning: no support for digital signatures" on every update. you can download gnu mp at http://www.swox.com/gmp/
A note for Solaris/iSCSI users: You must set the ABI system variable to 32 (e.g. setenv Abi 32) before running the configuration script of GMP.
Start Installation
Add group and user first
# Groupadd ClamAV
# Useradd-G ClamAV-S/bin/false-c "Clam Antivirus" ClamAV
Install
# Tar zxvf clamav-0.88.tar.gz
# Cd clamav-0.88
#./Configure -- prefix =/usr/local/ClamAV -- sysconfdir =/etc -- disable-zlib-vcheck -- disable-DNS -- disable-clamuko
(Clamav-0.88 requirements zlib version is relatively high, my as4 system comes with 1.2.1.2-1 can not pass, look at the latest version is 1.2.3, huh, too lazy to upgrade)
# Make
# Make install
Log File Settings
# Touch/var/log/freshclam. Log
# Chmod 600/var/log/freshclam. Log
# Chown ClamAV/var/log/freshclam. Log
# Touch/var/log/clam. Log
# Chmod 600/var/log/clam. Log
# Chown ClamAV/var/log/clam. Log
Configuration File
# Vi/etc/freshclam. conf
The following are the modified items.
Code: # example
Databasedirectory/var/lib/ClamAV
Updatelogfile/var/log/freshclam. Log
# Vi/etc/clamd. conf
Code: # example
Logfile/var/log/clam. Log
So far, installation is complete
Use freshclam to upgrade the virus database:
# Freshclam
Usage:
Kill files in the current directory
# Clamscan ./
Kill all files and directories in the current directory!
# Clamscan-R ./
Scan and kill the Dir directory,
# Clamscan dir
Kill all files and directories under the Dir directory!
# Clamscan-r dir
Other differences
-L [path] [file name] add scan report
# Clamscan-L/var/log/clamscan. log/
-- Move [path] to move the virus file ..
-- Remove [path] Delete Virus files
-- Unzip (unrar) decompress the compressed file for scanning
The path of clamscan is/usr/local/ClamAV/bin/clamscan.