CentOS installation ClamAV

Source: Internet
Author: User
Tags virus scan

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.