Sunday, 1 July 2018

How to Install Clam AV on RHEL 7/CentOS 7



Clam AV is an open source antivirus tool for Linux. Clam AV is used widely for detecting Viruses, Trojans, malware and other malicious threats on Linux.

Clam AV is available for Cent OS 7 on EPEL repository (Extra Packages for Enterprise Linux).

Setup EPEL repository: follow tutorial How to install EPEL repository on Centos7

Install Clam AV: follow the below command to get Clam AV installed:

[root@linuxcnf ~]# yum install clamav clamav-update clamav-scanner-systemd
Loaded plugins: fastestmirror
…….
Installed:
clamav.x86_64 0:0.99.4-1.el7                   
clamav-scanner-systemd.noarch 0:0.99.4-1.el7                   
clamav-update.x86_64 0:0.99.4-1.el7

Dependency Installed:
clamav-data.noarch 0:0.99.4-1.el7      
clamav-filesystem.noarch 0:0.99.4-1.el7        
clamav-lib.x86_64 0:0.99.4-1.el7    
clamav-scanner.noarch 0:0.99.4-1.el7
clamav-server.x86_64 0:0.99.4-1.el7    
clamav-server-systemd.noarch 0:0.99.4-1.el7

Complete!
[root@linuxcnf ~]#

Configuration of Clam AV:

[root@linuxcnf ~]# clamd -V
ERROR: Can't open/parse the config file /etc/clamd.conf
[root@linuxcnf ~]# locate clamd.conf
/usr/share/doc/clamav-server-0.99.4/clamd.conf
/usr/share/man/man5/clamd.conf.5.gz
[root@linuxcnf ~]# cp -p /usr/share/doc/clamav-server-0.99.4/clamd.conf /etc/clamd.conf
[root@linuxcnf ~]# sed -i /^Example/d /etc/clamd.conf
[root@linuxcnf ~]# clamd -V
ClamAV 0.99.4/24356/Fri Mar  2 04:14:59 2018
[root@linuxcnf ~]#

Installation is done!!!

No comments:

Post a comment