How to install Clamav on Centos 7

Go this from here: https://upcloud.com/community/tutorials/scan-centos-server-malware/
Follow this commands:
Install:

sudo yum install clamav clamav-update clamav-scanner-systemd clamav-server-systemd

You need to configure the example file like this:

sudo sed -i -e "s/^Example/#Example/" /etc/freshclam.conf
sudo sed -i -e "s/^Example/#Example/" /etc/clamd.d/scan.conf

Now lets update it:

sudo freshclam

Now let’s scan the home directory:

sudo clamscan -r /home

If you want to delete the infected files automatically you need to use this command instead:

sudo clamscan -r --remove /home

Leave a Reply

You must Register or Login to comment on How to install Clamav on Centos 7