How to Install
-
2. Install ClamAV
Install ClamAV core, daemon, and freshclam updater:
sudo apt install clamav clamav-daemon clamav-freshclam -y
-
3. Stop Freshclam Service Temporarily
Stop the automatic update service to manually update signatures:
sudo systemctl stop clamav-freshclam
-
4. Update Virus Database
Manually update the ClamAV virus database:
sudo freshclam
-
5. Enable and Start Services
Start and enable ClamAV daemon and freshclam for automatic updates:
sudo systemctl enable --now clamav-freshclam
sudo systemctl enable --now clamav-daemon
-
6. Scan Your System
Run a recursive scan on a directory and show only infected files:
clamscan -r -i /path/to/scan
Or use the faster daemon scan:
clamdscan --fdpass /path/to/scan
Contents