How to install Clamav on Centos 7

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #86547
    Locohacker
    Administrator

    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
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.