How to Install ClamAV Linux Antivirus on Ubuntu Linux
This guide explains how to install ClamAV on Ubuntu. ClamAV is a free tool used to find and remove viruses, trojans, and other harmful software.
Open your Ubuntu terminal and run ‘sudo apt install clamav clamav-daemon’. After installation, you can scan files using ‘clamscan –infected –remove –recursive /home’ or install the GUI with ‘sudo apt install clamtk’.
Why use ClamAV?
While Linux is very secure, it is not perfect. Malware can still find ways onto your computer. Using ClamAV adds an extra layer of protection to keep your files safe.
What happens when done?
After you finish the ClamAV Ubuntu installation, you’ll have a strong antivirus ready to scan your computer for dangers, and a simple visual tool to help manage its security.
To begin, open your terminal by pressing Ctrl+Alt+T on your keyboard.
First, update your system and install the software by running the command below:
sudo apt install clamav clamav-daemon
clamscan --infected --remove --recursive /home
The system will show you a summary after the scan is finished:
----------- SCAN SUMMARY -----------
Known viruses: 6541075
Engine version: 0.99.4
Scanned directories: 136
Scanned files: 401
Infected files: 0
Data scanned: 63.20 MB
Data read: 43.88 MB (ratio 1.44:1)
Time: 23.938 sec (0 m 23 s)
To scan your entire computer for infected files, run this command:
sudo clamscan --infected --remove --recursive /
If you prefer using a mouse instead of typing commands, you can install the graphical interface (GUI) version:
sudo apt install clamtk
After the installation is complete, search for ClamTk in your app menu. Open it to start using your new antivirus software.

That is all there is to it!
Summary
ClamAV is a reliable, open-source tool for Ubuntu users. By following these steps, you have installed the core engine, learned how to run scans via the terminal, and set up a user-friendly interface to protect your system from digital threats.
You may also like the post below:
How do I know if ClamAV is installed on Ubuntu?
Check the Status of the ClamAV Daemon You can check the ClamAV daemon status under the Anti-virus line in the Services dashboard widget. It should be green and Active. You can click on the Active or Inactive in the status column to get more information.
Where is ClamAV installed on Linux?
ClamAV’s setup files on Linux are usually found in the /usr/local/etc/clamav folder, which is where its configuration settings live after the ClamAV Ubuntu installation.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
le meilleur antivirus c’est linux sans rien pour l’amateur que je suis .10 ans de linux sans rien .par contre eviter “avast home linux” qui une fois installé est dur a désinstaller(fait le boulot mais ralentit le p c).le mieusx c’est clamav ou clamtk a installer avec la logithèque ou le gestionnaire de paquets synaptic.amitiés.
Where should my files be located so I can successfully install. I continue to have unsuccessfull installation.