→ Installing ClamAV on Fedora
→ Install ClamAV pacakges
dnf -y install clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd
→ Update the feshclam database
freshclam
sed -e 's/ExecStart=.*/ExecStart=\/usr\/bin\/freshclam/g' -i /usr/lib/systemd/system/clamav-freshclam.service
systemctl enable clamav-freshclam
systemctl start clamav-freshclam
sed -e 's/User.*/User root/g' -i /etc/clamd.d/scan.conf
sed -e 's/#LocalSocket/LocalSocket/g' -i /etc/clamd.d/scan.conf
sed -i 's/#FixStaleSocket/FixStaleSocket/g' -i /etc/clamd.d/scan.conf
cp -ap /usr/lib/systemd/system/clamd@.service /etc/systemd/system/clamd.service
sed -e 's/%i/scan/g' -i /etc/systemd/system/clamd.service
systemctl enable clamd.service --now
→ Done!