What is Clam Antivirus?
Clam AntiVirus (ClamAV) is a free software, cross-platform antimalware toolkit able to detect many types of malware, including viruses. It was developed for Unix and has third party versions available for AIX, BSD, HP-UX, Linux, macOS, OpenVMS, OSF (Tru64) and Solaris. As of version 0.97.5, ClamAV builds and runs on Microsoft Windows.[3][4] Both ClamAV and its updates are made available free of charge. One of its main uses is on mail servers as a server-side email virus scanner.
[root@centos5 ~]# yum –enablerepo=epel -y install clamav clamav-update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: repo.shinjiru.com
* epel: download.nus.edu.sg
* extras: repo.shinjiru.com
* updates: repo.shinjiru.com
droplet-agent | 3.3 kB 00:00:00
Resolving Dependencies
–> Running transaction check
—> Package clamav.x86_64 0:0.103.
[root@centos5 ~]# sed -i -e “s/^Example/#Example/” /etc/freshclam.conf
[root@centos5 ~]# freshclam
ClamAV update process started at Mon Oct 3 14:27:21 2022
daily database available for download (remote version: 26678)
Time: 0.6s, ETA: 0.0s [========================>] 57.18MiB/57.18MiB
Testing database: ‘/var/lib/clamav/tmp.696d83d197/clamav-fc6fd210baf30336bc11a7e8a0320521.tmp-daily.cvd’ …
root@centos5 ~]# clamscan –infected –remove –recursive /home
———– SCAN SUMMARY ———–
Known viruses: 0
Engine version: 0.103.7
Scanned directories: 0
Scanned files: 0
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 0.004 sec (0 m 0 s)
Start Date: 2022:10:03 14:29:41
End Date: 2022:10:03 14:29:41
[root@centos5 ~]#