Install ClamAV on Centos 6.4 6.3 5.9 5.8 Redhat RHEL

Install ClamAV on Centos 6.4 6.3 5.9 5.8 Redhat RHEL

install Clam AntiVirus Fedora 18

ClamAV is an open source antivirus used for detecting Trojans, viruses, malware and other malicious threats.

In this guide, we will install and use ClamAV in Centos and Redhat OS.

Install epel repo, before installing ClamAV

http://ithelpblog.com/os/linux/redhat/centos-redhat/how-to-install-epel-repository-on-centos-6-4-or-redhat-6-4-rhel/

Step 1: Install ClamAV

[root@localhost ~]# yum install clamav
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 4.2 kB 00:00
* base: virror.hanoilug.org
* epel: mirror.smartmedia.net.id
* extras: virror.hanoilug.org
* updates: centos-hcm.viettelidc.com.vn
base | 3.7 kB 00:00
epel | 4.2 kB 00:00
epel/primary_db | 5.1 MB 00:29
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
updates/primary_db | 2.5 MB 00:10
virtualbox | 951 B 00:00
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package clamav.x86_64 0:0.97.8-1.el6 will be installed
–> Processing Dependency: clamav-db = 0.97.8-1.el6 for package: clamav-0.97.8-1.el6.x86_64
–> Running transaction check
—> Package clamav-db.x86_64 0:0.97.8-1.el6 will be installed
–> Finished Dependency Resolution
Dependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
clamav x86_64 0.97.8-1.el6 epel 10 M
Installing for dependencies:
clamav-db x86_64 0.97.8-1.el6 epel 56 MTransaction Summary
=====================================================================================================================================================================================================
Install 2 Package(s)

Total download size: 67 M
Installed size: 72 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): clamav-0.97.8-1.el6.x86_64.rpm | 10 MB 01:05
(2/2): clamav-db-0.97.8-1.el6.x86_64.rpm | 56 MB 04:54
—————————————————————————————————————————————————————————————————–
Total 190 kB/s | 67 MB 06:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : clamav-db-0.97.8-1.el6.x86_64 1/2
Installing : clamav-0.97.8-1.el6.x86_64 2/2
Verifying : clamav-0.97.8-1.el6.x86_64 1/2
Verifying : clamav-db-0.97.8-1.el6.x86_64 2/2

Installed:
clamav.x86_64 0:0.97.8-1.el6

Dependency Installed:
clamav-db.x86_64 0:0.97.8-1.el6

Complete!
[root@localhost ~]#

Step 2: Update antivirus database

[root@localhost ~]# freshclam
ClamAV update process started at Sun May 19 17:22:23 2013
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 69.12.162.28)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 208.72.56.53)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 168.143.19.95)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
nonblock_recv: recv timing out (30 secs)
WARNING: getfile: Error while reading database from db.us.clamav.net (IP: 78.46.84.244): Operation now in progress
WARNING: Can’t download daily.cvd from db.us.clamav.net
Trying again in 5 secs…
ClamAV update process started at Sun May 19 17:23:09 2013
main.cvd is up to date (version: 54, sigs: 1044387, f-level: 60, builder: sven)
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 64.6.100.177)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 155.98.64.87)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: getfile: daily-17074.cdiff not found on remote server (IP: 200.236.31.1)
WARNING: getpatch: Can’t download daily-17074.cdiff from db.us.clamav.net
WARNING: Incremental update failed, trying to download daily.cvd
Downloading daily.cvd [100%]
daily.cvd updated (version: 17240, sigs: 1277787, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 214, sigs: 41, f-level: 63, builder: neo)
Database updated (2322215 signatures) from db.us.clamav.net (IP: 69.163.100.14)
[root@localhost ~]#

Step 3: Scan antivirus with ClamAV

[root@localhost ~]# clamscan –infected –remove –recursive
———– SCAN SUMMARY ———–
Known viruses: 2316802
Engine version: 0.97.8
Scanned directories: 75
Scanned files: 80
Infected files: 0
Data scanned: 21.78 MB
Data read: 81.85 MB (ratio 0.27:1)
Time: 7.605 sec (0 m 7 s)
[root@localhost ~]#

That’s it. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>