Instructions for Different Linux Flavors
Ubuntu/Debian:
- Update your package list:
sudo apt-get update
- Install ClamAV:
sudo apt-get install clamav clamav-daemon
- Update the virus database:
sudo freshclam
- Start and enable the ClamAV service:
sudo systemctl start clamav-daemon
andsudo systemctl enable clamav-daemon
- Verify installation:
clamscan --version
CentOS/RHEL/AlmaLinux/Rocky:
- Update your package list:
sudo yum update
- Install ClamAV:
sudo yum install clamav clamav-server clamav-daemon
- Update the virus database:
sudo freshclam
- Start and enable the ClamAV service:
sudo systemctl start clamav-daemon
andsudo systemctl enable clamav-daemon
- Verify installation:
clamscan --version
Fedora:
- Update your package list:
sudo dnf update
- Install ClamAV:
sudo dnf install clamav clamav-server clamav-daemon
- Update the virus database:
sudo freshclam
- Start and enable the ClamAV service:
sudo systemctl start clamav-daemon
andsudo systemctl enable clamav-daemon
- Verify installation:
clamscan --version
SUSE:
- Update your package list:
sudo zypper update
- Install ClamAV:
sudo zypper install clamav
- Update the virus database:
sudo freshclam
- Start and enable the ClamAV service:
sudo systemctl start clamav-daemon
andsudo systemctl enable clamav-daemon
- Verify installation:
clamscan --version