Install ClamAV
First, install the Epel (Extra Packages for Enterprise Linux) repository and the mailx command with yum. .
yum -y install epel-release
In this step, we will install Clam AntiVirus or ClamAV to get the best scanning results of LMD. ClamAV is available in the Epel repository (that we’ve installed in the first step).
Install ClamAV and ClamAV devel with yum:
yum -y install clamav clamav-devel
After ClamAV has been installed, update the ClamAV virus databases with the freshclam command:
freshclam