how to secure your centos with clamav

how to install clamAV on centos 5 and centos 6. What and function Clam AntiVirus (ClamAV) is a free, cross-platform antivirus software tool-kit able to detect many types of malicious software, including viruses. One of its main uses is on mail servers as a server-side email virus scanner. if you need best free antivirus for linux centos you can use this one. you can easy protect your linux centos and make safe than before. if you need work how to scan virus with clamav you can read documentation or learn here. also if you dont like this antivirus you can uninstall Clamav (not recommended because not save Operating system without antivirus)

ClamAV uses freshclam to update the virus definitions. They are automatically updated with the /etc/cron.daily/freshclam cron script. No actions need to be taken. You can verify that your updates are being completed by looking at your /var/log/clamav/freshclam.log log file.

if you need easy how to install clamav for linux centos you and add epel repo and use yum command to install clamav.
CentOS 6 – 32-bit

CentOS 6 – 64-bit

CentOS 5 – 32-bit

CentOS 5 – 64-bit

now after you enable epel repo, you can update first your software this is good option, use command :

then try Install clamav to your linux centos from epel repo :

thats all, you have clamav on your linux system, but we need auto start, if you reboot your linux centos then clamav will automaticly running, use command :

Update ClamAV’s signatures

ClamAV will update automatically, as part of /etc/cron.daily/freshclam

exampele if i have webserver and want make save on webdirectory like /var/www/html then i need cronjob to scan the /var/www/html directory every day:
you may need Create cron file:

Add the following to the file above. Be sure to change SCAN_DIR to the directory that you want to scan:

make this cron script executable permissions:

You can even run the above script to ensure that it works correctly.

you see this is not difficulty, scan file linux centos with clamav. if you worry have trojan, viruses or malware.

after you know tutorial how to install clamav on linux centos 5 or 6 you may want to know how to uninstall clamav from linux centos. this simple, if you before have this one and install clamav manual build and configure you need read again this tutorial from above.

1. add epel repo first (if you dont have this one)

2. use command :

2. install or upgrade clamav software (if you

if dont work you may try reinstall or upgrade first you clamav.

Leave a Reply

Your email address will not be published. Required fields are marked *