yum -y install gmp-devel
wget http://freshmeat.net/redir/clamav/29355/url_tgz/clamav-0.97.3.tar.gz
adduser -M -s /bin/false clamav
tar zxf clamav-0.97.3.tar.gz
cd clamav-0.97.3
./configure --prefix=/usr/local/clamav
make install
for binaries in `find /usr/local/clamav/bin/*` ; do ln -s ${binaries} /usr/bin/; done
Read more: http://crazytoon.com/2007/10/19/linux-virus-scan-how-do-i-check-my-linux-installation-for-viruses-using-clamav-centos-linux-redhat/#ixzz1nf1gPXFp
At this point Clam AntiVirus is installed and ready for use. Edit the configuration file and remove the line which says: Example It is there to ensure. If you want, you can look at other options but we don’t need to change anything else here to make ClamAV work for us.
vi /usr/local/clamav/etc/freshclam.conf #remove Example
Now let us run the freshclam which will download virus database and bring our virus database up to date. We should do this manually and make sure it didn’t give any errors. If this works, you will a lot of “downloading” messages.
/usr/bin/freshclam
If everything checks out, let us add this to our crontab to ensure our virus database is updated hourly. I chose to be updated every 9 minutes in to every hour. You can change to fit your needs or leave it as it is.
crontab -e
9 * * * * /usr/bin/freshclam –quiet
At this point our ClamAV virus database is up to date and now we can scan whichever directory we want. Go to the directory you want to scan and type:
clamscan -r -i
Once it is done scanning, it will display something similar to below.
-r parameter tells clamscan to recurse into directories
-i will print out infected filenames
Read more: http://crazytoon.com/2007/10/19/linux-virus-scan-how-do-i-check-my-linux-installation-for-viruses-using-clamav-centos-linux-redhat/#ixzz1nf1lINvr
Subscribe to:
Post Comments (Atom)
1 comments:
Thanks for share but there are lots of antivirus software that are used on the Linux as Avira and avast can also detect the viruses on the Linux.
Post a Comment