How to Download and Install ClamAV for Free
The free, open-source antivirus engine trusted by mail servers and privacy-conscious users — now available on every desktop platform.
Visit Official Site →Is ClamAV Free?
Yes. ClamAV is free and open source under the GNU General Public License v2 (GPLv2) — no paid tier, no subscription, no account required, and no feature locked behind a paywall. It was originally developed for Unix mail gateways and is now maintained by Cisco Talos. The entire source code is publicly available on GitHub.
ClamAV is not a commercial product with an upsell path. It is a standalone antivirus engine that anyone can download, inspect, modify, and redistribute under the GPL. This is why it remains widely used on Linux mail servers, in Docker containers, and by privacy-conscious users on Windows and macOS who want a free second-opinion scanner.
Current release: ClamAV 1.5.4 (7 August 2026). The previous stable branch, 1.4.6, is also available for users who need a longer-support line.
System Requirements
- Windows: Windows 7 or newer (32-bit and 64-bit). Official MSI installers and portable ZIP packages are available for x64, win32, and ARM64.
- macOS: macOS 10.13 (High Sierra) or newer. A universal PKG installer supports both Intel and Apple Silicon (x86_64 and arm64).
- Linux: Any modern 64-bit or 32-bit distribution. Official .deb and .rpm packages are provided, and ClamAV is also available from the package repositories of Debian, Ubuntu, Fedora, RHEL, Arch, and others.
- RAM: ~2 GB minimum; 3 GB+ recommended when running the ClamD daemon or scanning large mail queues.
- Storage: ~500 MB for the application, plus ~1–2 GB for the virus signature database.
- Network: Required for
freshclamto download signature updates.
Latest version as of October 2026: 1.5.4. Check the official downloads page for the exact package for your architecture.
How to Install ClamAV on Linux
Linux is ClamAV's native platform. You have two options: install from your distribution's package manager (fastest), or use the official .deb/.rpm packages from clamav.net (newest version).
- Option A — Distribution repository (recommended). Use your package manager:
- Debian / Ubuntu / Linux Mint:
sudo apt update && sudo apt install clamav clamav-daemon. - Fedora / RHEL / AlmaLinux:
sudo dnf install clamav clamd clamav-update(enable EPEL first on RHEL/AlmaLinux). - Arch Linux:
sudo pacman -S clamav.
- Debian / Ubuntu / Linux Mint:
- Option B — Official .deb / .rpm from clamav.net. Download the package for your architecture from clamav.net/downloads. For RPM systems, install with
sudo dnf install ~/Downloads/clamav-1.5.4.linux.x86_64.rpm. Note: official packages install to/usr/localand may require manual configuration offreshclam.confandclamd.conf. - Update the signature database. Run
sudo freshclam. On systemd distributions, theclamav-freshclamservice may handle this automatically — check withsystemctl status clamav-freshclam. - Start the daemon (optional). If you want on-access scanning or faster repeated scans, start ClamD:
sudo systemctl enable --now clamav-daemon(Debian/Ubuntu) or the equivalent for your distribution. - Verify the installation. Run
clamscan --versionandfreshclam --versionto confirm both tools are working.
How to Install ClamAV on macOS
macOS users have two main routes: the official universal PKG installer or Homebrew.
- Option A — Official PKG installer. Download
clamav-1.5.4.macos.universal.pkgfrom clamav.net/downloads. Double-click the PKG and follow the installer prompts. It installs system-wide and works on both Intel and Apple Silicon. - Option B — Homebrew (recommended for CLI users). Run
brew install clamav. Homebrew handles dependencies and makes future updates easier withbrew upgrade clamav. - Configure freshclam. The Homebrew version ships with sample configuration files. Copy them into place:
cp /opt/homebrew/etc/clamav/freshclam.conf.sample /opt/homebrew/etc/clamav/freshclam.conf
Then edit the file to remove theExampleline at the top (ClamAV refuses to run with the example config). - Update the database. Run
freshclamto download the signature database. - Verify. Run
clamscan --version.
Note: ClamAV on macOS is command-line only. For a graphical interface, consider ClamXAV (paid, uses the ClamAV engine) or run scans from Terminal.
How to Install ClamAV on Windows
Windows users get an MSI installer or a portable ZIP. The MSI is the standard choice.
- Download the installer. Go to clamav.net/downloads and choose the MSI for your architecture:
- x64 for most modern PCs (
clamav-1.5.4.win.x64.msi). - win32 for 32-bit Windows (
clamav-1.5.4.win.win32.msi). - arm64 for Windows on ARM (
clamav-1.5.4.win.arm64.msi).
- x64 for most modern PCs (
- Run the MSI. Double-click the installer and follow the prompts. It installs ClamAV into
Program Filesand adds the ClamAV tools to your Start menu. - Open a command prompt as Administrator. ClamAV's command-line tools need elevated privileges for some operations.
- Update the database. Navigate to the ClamAV installation directory (usually
C:\Program Files\ClamAV) and runfreshclam.exe. This downloads the signature database. - Verify. Run
clamscan.exe --version. - No official GUI. ClamAV is command-line only on Windows. If you prefer a graphical interface, use a third-party front-end such as ClamWin; otherwise, the command-line tools are fully functional.
Getting Started
- Understand what ClamAV is — and is not. ClamAV is an on-demand scanner. It does not provide real-time protection. Use it to scan suspicious files, downloads, or entire drives, but do not rely on it as your only antivirus on Windows or macOS.
- Update before you scan. Always run
freshclambefore a scan, or ensure theclamav-freshclamservice is running. An outdated database is the most common reason ClamAV "misses" malware. - Scan a file or folder. Use
clamscan path/to/filefor a single file. Add-rfor recursive folder scans:clamscan -r ~/Downloads. - Scan an entire drive. On Windows:
clamscan -r C:\Users\YourName\Downloads. On Linux/macOS:clamscan -r /home/username. Full-drive scans can take a long time — start with targeted folders. - Use ClamD for repeated scans. The ClamD daemon keeps the signature database loaded in memory, making subsequent scans much faster. Start it as a service and use
clamdscaninstead ofclamscan. - Remove or quarantine infected files. Use
--removeto delete infected files automatically (careful — this is irreversible) or--move=/path/to/quarantineto move them to a quarantine folder.
Useful Tips
- 🔄 Update daily. Run
freshclamat least once a day, or let theclamav-freshclamservice do it. New malware signatures are published frequently, and an outdated database is the biggest weakness of any signature-based scanner. - 🖥️ Use ClamD for speed. If you scan often, start the ClamD daemon and use
clamdscaninstead ofclamscan— it avoids reloading the signature database on every run. - 📁 Start with targeted folders. Scan
Downloads,Desktop, and email attachment folders first. Full-drive scans on large disks can take hours and are rarely necessary for routine checks. - 🧪 Test with EICAR. The EICAR test file is a harmless string that all antivirus engines detect. Create a text file containing the EICAR string and scan it to confirm ClamAV is working before you rely on it for real threats.
- 🔒 Do not rely on ClamAV alone on Windows. Windows Defender provides real-time protection that ClamAV cannot. Use ClamAV as a second-opinion scanner, not a replacement.
- 📦 Docker users: ClamAV is available as an official Docker image (
clamav/clamav). It is commonly used to scan uploaded files in web applications and CI pipelines. - ⚙️ Configuration files matter. The official installers (especially .deb/.rpm from clamav.net and the macOS PKG) do not always include pre-configured
freshclam.confandclamd.conf. You may need to create them from the sample files and remove theExampleline before ClamAV will run. - 🧹 Quarantine, don't delete. Use
--moveinstead of--removewhen scanning important folders. Quarantining lets you restore a false positive; deleting is permanent.
ClamAV vs Windows Defender vs Commercial Antivirus
- ClamAV: Free, open source (GPLv2), cross-platform, and command-line driven. On-demand scanning only — no real-time protection. Best for Linux servers, mail gateways, Docker containers, and as a free second-opinion scanner on Windows and macOS. Detection of known malware is solid; detection of new/zero-day threats is weaker than commercial engines.
- Windows Defender (Microsoft Defender Antivirus): Built into Windows 10 and 11, free, with real-time protection, cloud-delivered intelligence, and behavioural analysis. It is the primary antivirus on Windows and is genuinely good. Best for everyday Windows users who want automatic, always-on protection with zero setup.
- Commercial antivirus (Norton, Bitdefender, Kaspersky, etc.): Paid subscriptions with real-time protection, firewalls, phishing protection, VPN bundles, and support. Higher detection rates for zero-day threats and better usability for non-technical users. Best for users who want a hands-off, fully managed security suite.
ClamAV does not compete with commercial antivirus on detection breadth or real-time protection — it was never designed to. Its value is in being free, open, scriptable, and cross-platform, which is why it dominates mail-server and container scanning. For desktop users, the practical setup is: Windows Defender as the primary real-time antivirus, ClamAV as a free on-demand second scanner.
Troubleshooting Common Issues
- ❌ "Database initialization error" or "Can't open file or directory." The signature database is missing or outdated. Run
freshclamto download it. On Linux, ensure theclamav-freshclamservice is running. On macOS/Homebrew, confirm you copied the sample config files and removed theExampleline. - 🔒 "Permission denied" when scanning. ClamAV needs read access to the files you scan. On Windows, run the command prompt as Administrator. On Linux/macOS, use
sudofor system-wide scans, or ensure your user has read permissions on the target directory. - 🐌 Scans are very slow. ClamAV is CPU-intensive, especially on first scans. Use
clamdscanwith the ClamD daemon for faster repeat scans. Exclude large archive files or virtual machine images if they are not relevant to your scan. - 📡
freshclamfails with "Connection refused" or timeout. Check your network connection and firewall. ClamAV downloads from the official mirror network over HTTP/HTTPS. Some corporate networks block these domains — configure a proxy infreshclam.confif needed. - 🖥️ ClamAV won't launch on Windows. Ensure you are using the correct MSI for your architecture (x64 vs win32 vs arm64). If the installer fails, try the portable ZIP package and run
clamscan.exefrom the extracted folder. - 🍎 macOS: "freshclam: command not found." The Homebrew-installed binaries may not be in your PATH. Check
/opt/homebrew/bin(Apple Silicon) or/usr/local/bin(Intel). Add the appropriate directory to your shell's PATH. - ⚠️ False positives. ClamAV's signature database is aggressive with some legitimate files (especially packed executables). If ClamAV flags a file you trust, submit it to the ClamAV false-positive tracker rather than deleting it immediately. Use
--excludeor quarantine to isolate the file while you investigate. - 🔄 Freshclam database update fails with "Your ClamAV installation is OUTDATED." A major version jump may be required. Download the latest installer from clamav.net and upgrade. On Linux, check whether your distribution's package is lagging behind and consider the official .deb/.rpm if you need the newest version.
Frequently Asked Questions
Does ClamAV have a graphical interface?
Not by default. ClamAV is primarily a command-line toolkit. On Windows, there is no official tray app — use the command line, or a third-party GUI such as ClamWin. On macOS, use Terminal or a paid third-party app like ClamXAV (which uses the ClamAV engine). On Linux, third-party GUIs like ClamTK are available.Can ClamAV replace Windows Defender?
No. ClamAV is an on-demand scanner, not a real-time antivirus. It does not run in the background watching every file you open. Windows Defender provides real-time protection and is the primary antivirus on Windows. ClamAV is best used as a second-opinion scanner or for scanning files on servers and mail gateways.Does ClamAV detect all malware?
ClamAV has a large signature database and detects many trojans, viruses, and malware families, but its detection rates for new or zero-day threats are lower than commercial engines that use behavioural analysis and cloud intelligence. It is strongest at detecting known malware in email attachments and web downloads, which is why it remains widely used on mail servers.How often should I update the virus database?
Daily. Thefreshclam tool downloads signature updates, and ClamAV’s official documentation recommends running it at least once per day. On Linux, the clamav-freshclam service usually handles this automatically. On Windows and macOS, run freshclam manually or schedule it with Task Scheduler / launchd.
Does ClamAV send telemetry?
No. ClamAV does not include analytics or telemetry. The only network activity isfreshclam downloading signature updates from the official ClamAV mirror network. Cisco Talos, the maintainer, does not collect usage data through the ClamAV client.