Ubuntu Linux

How to Install ClamAV Linux Antivirus on Ubuntu Linux

Richard
Written by
Richard
Jun 8, 2018 Updated Apr 18, 2026 3 min read

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.

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?

Once finished, you will have a powerful tool that can scan your folders or your entire system for threats. You will also have an easy-to-use visual interface to manage your security.

To begin, open your terminal by pressing Ctrl + Alt + T on your keyboard.

Note: The following steps require admin privileges. You may be asked to type your computer password.

First, update your system and install the software by running the command below:

🐧Bash / Shell
sudo apt install clamav clamav-daemon

ClamAV is now installed. You can use the terminal to scan your files. Try scanning your home folder with this command:

💻Code
clamscan --infected --remove --recursive /home

The system will show you a summary after the scan is finished:

💻Code
----------- 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:

🐧Bash / Shell
sudo clamscan --infected --remove --recursive /

If you prefer using a mouse instead of typing commands, you can install the graphical interface (GUI) version:

🐧Bash / Shell
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.

ClamAV Ubuntu install

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:

%%LNK0%%

Frequently Asked Questions

%%LNK1%%

What is ClamAV and why should I install it on Ubuntu?

ClamAV is an open-source antivirus engine designed to detect and remove malware, viruses, and trojans. Installing it on Ubuntu can enhance your system's security, as Linux is not immune to threats despite being more secure than other operating systems.


How do I install ClamAV on Ubuntu?

To install ClamAV on Ubuntu, open your terminal and run the command 'sudo apt install clamav clamav-daemon'. This will install both the ClamAV engine and its daemon for real-time scanning.


How can I scan my files for viruses using ClamAV?

You can scan your files by using the command 'clamscan --infected --remove --recursive /path/to/directory'. Replace '/path/to/directory' with the path you want to scan, such as '/home' for your home folder.


Is there a graphical user interface (GUI) for ClamAV on Ubuntu?

Yes, you can install a GUI front-end for ClamAV called ClamTk. To install it, run the command 'sudo apt install clamtk' in your terminal, and then you can search for ClamTk in the Dash or Activities Overview to start using it.


Can ClamAV remove infected files automatically?

Yes, ClamAV can automatically remove infected files when you run a scan with the '--remove' option. For example, using the command 'clamscan --infected --remove --recursive /' will scan your entire system and delete any infected files it finds.

Was this guide helpful?

Richard

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.

0 responses to “How to Install ClamAV Linux Antivirus on Ubuntu Linux”

  1. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Exit mobile version