Building clamav from source file is quiet tough job, there is so many configurations and dependency file/library required as well , if you are not good with building programs you may end up with wrong cofiguarion and break your system . alternatively you can install clamav from RPM's , but its kinda hard to find right RPM package .
There is more easier way to install ClamAV program via yum repo . in this tutorial i will install ClamAV via yum repository , which is quiet straight forward . please note this tutorial will apply to centos/redhat linux and fedora only .
Login to your shell / terminal/ putty
type
$ cd /etc/yum.repos.d
enter and now type
$ wget http://www.linux-mail.info/files/dag-clamav.repo
press enter
$ yum install clamav clamav-devel clamd
when ask to confirm , press Y and enter .
now update your Clamav Database
$ freshclam
Start ClamAv
$ service clamd start
run ClamAv scan
$ clamscan -r /home (replace home with your desired folder/file name)
thats all
Copyright : www.mybanglaspace.com/durjoy [please do not copy or publish this blog without my permission]
Tags: Linux Network Security Server Webserver Hack Centos Clamav