Install ClamAV Scan on Amazon Linux 2
sudo amazon-linux-extras install epel sudo yum install clamav clamd -y sudo sed -i -e "s/Example/#Example/" /etc/freshclam.conf sudo sed -i -e "s:#DatabaseDirectory /var/lib/clamav:DatabaseDirectory /var/lib/clamav:" /etc/freshclam.conf sudo sed -i -e "s:#UpdateLogFile /var/log/freshclam.log:UpdateLogFile /var/log/freshclam.log:" /etc/freshclam.conf sudo sed -i -e "s/#DatabaseOwner clamupdate/DatabaseOwner clamupdate/" /etc/freshclam.conf sudo vi /etc/clamd.d/scan.conf # Change MaxThreads if desired. sudo freshclam clamscan -r / 2>&1 | tee openvinoami_clamav_scan.txt # If problems arise, restart sudo pkill freshclam sudo freshclam clamscan -r / 2>&1 | tee openvinoami_clamav_scan.txt