How to install ClamAV on CentOS 5 (RHEL 5)
ClamAV เป็น anti virus open source ที่นิยมกันอย่างมากในระบบปฏิบัติการ Linux และ Unix เนื่องจากเป็น Free Anti virus ที่มีความสามารถในการทำงานร่วมกับ service ต่างๆได้เป็นอย่างดี และมีความยืดหยุ่นในการตั้งค่าและใช้งานมาก ตัวอย่างที่นิยมใช้กันอย่างมาก เช่น การทำ mail gateway scanner
เราก็พอรู้ข้อดีของ ClamAV แบบคร่าวๆไปแล้ว ต่อไปลองมาดูวิธีการติดตั้ง ClamAV กับ CentOS 5 กันดูบ้าง ซึ่งการติดตั้งนั้นง่ายมาก เพียงแค่ config เพิ่มนิดหน่อยเท่านั้นเอง
การติดตั้ง ClamAV กับ CentOS 5
เพิ่มไฟล์ atrpms.repo ไปยัง /etc/yum.repos.d ด้วยคำสั่ง echo ดังตัวอย่าง
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[root@Ezylinux ~]# echo "[atrpms] name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms failovermethod=priority baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms [atrpms-debuginfo] name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Debug failovermethod=priority baseurl=http://dl.atrpms.net/debug/el$releasever-$basearch/atrpms/stable enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms [atrpms-source] name=Red Hat Enterprise Linux $releasever - $basearch - ATrpms - Source failovermethod=priority baseurl=http://dl.atrpms.net/src/el$releasever-$basearch/atrpms/stable enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-atrpms" > /etc/yum.repos.d/atrpms.repo |
Install ClamAV ด้วยคำสั่งด้านล่าง
1 2 3 |
[root@Ezylinux ~]# yum install clamav |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
Loaded plugins: dellsysidplugin2, downloadonly, fastestmirror Loading mirror speeds from cached hostfile * addons: mirror.issp.co.th * atrpms: dl.atrpms.net * base: mirror.issp.co.th * extras: mirror.issp.co.th * rpmforge: apt.sw.be * updates: mirror.issp.co.th Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package clamav.x86_64 1:0.97-57.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ========================================================================== Package Arch Version Repository Size ========================================================================== Installing: clamav x86_64 1:0.97-57.el5 atrpms 31 M Transaction Summary ========================================================================= Install 1 Package(s) Upgrade 0 Package(s) Total download size: 31 M Is this ok [y/N]: y Downloading Packages: clamav-0.97-57.el5.x86_64 100% |=======================| 31 MB 03:03 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : clamav 1/1 Installed: clamav.x86_64 1:0.97-57.el5 Complete! |
หลังจาก Install เสร็จแล้วก็ update database (signatures) สักหน่อยด้วยคำสั่ง freshclam ดังตัวอย่างข้างล่าง
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
[root@Ezylinux ~]# freshclam ClamAV update process started at Wed Mar 2 12:18:54 2011 main.cvd is up to date (version: 53, sigs: 846214, f-level: 53, builder: sven) WARNING: getfile: daily-12639.cdiff not found on remote server (IP: 193.1.193.64) WARNING: getpatch: Can't download daily-12639.cdiff from database.clamav.net WARNING: getfile: daily-12639.cdiff not found on remote server (IP: 130.59.10.36) WARNING: getpatch: Can't download daily-12639.cdiff from database.clamav.net WARNING: getpatch: Can't download daily-12639.cdiff from database.clamav.net WARNING: Incremental update failed, trying to download daily.cvd Downloading daily.cvd [100%] daily.cvd updated (version: 12796, sigs: 61237, f-level: 60, builder: neo) Downloading bytecode.cvd [100%] bytecode.cvd updated (version: 140, sigs: 40, f-level: 58, builder: edwin) Database updated (907491 signatures) from database.clamav.net (IP: 130.59.10.36) |
ขั้นตอนการติดตั้ง ClamAV ก็มีแค่นี้ครับ หลังจากติดตั้งเสร็จก็แล้วแต่ว่าจะนำไปประยุกต์ใช้กับอะไรครับ
สำหรับ Windows ไปดูที่ Free Anti virus 2011 ได้เลย