1. Configure the Yum source
# cd/etc/yum.repos.d/
# VI Dag.repo write the following:
#Dag RPM Repository Start
[Dag]
Name=dag RPM Repository for RHEL4
baseurl=http://ftp.riken.jp/linux/dag/redhat/el4/en/$basearch/dag/
Enabled=1
Gpgcheck=1//If Warning:rpmts_HdrFromFdno:Header V3 DSA Signature:nokey appears, key ID 6b8d79e6, change to 0
#Dag RPM Repository End
Recommend that you perform a yum update again.
2. Installing CLAMD
# yum install-y ClamAV clamd clamav-update
# chkconfig--levels 235 CLAMD on
# service ClamAV Start
3. Installing Pyclamad
# pip Install Pyclamad
>>import Pyclamad//No error indicates installation is successful
4. Update ClamAV virus Codes
Enter the following command on the # symbol, and after entering the input, you can click:
Freshclam
10. Test CLAMD virus Scan function
Enter the following command on the # symbol, and after entering the input, you can click:
Clamscan-r/tmp/
Clamscan/tmp/zip.zip
CentOS installation ClamAV