Skip to content
Follow
Ubuntu Linux

How to Install ClamAV Linux Antivirus on Ubuntu Linux

Richard
Written by
Richard
Jun 8, 2018 Updated Jul 15, 2026 2 min read
How to Use Sticky Notes in Windows 11
How to Use Sticky Notes in Windows 11

ClamAV is a free antivirus scanner that you can install on Ubuntu Linux to find and remove viruses, trojans, and other nasty software.

This open-source tool checks your files for malicious code, much like antivirus programs do on Windows. It’s a good way to add an extra layer of security to your Ubuntu system, especially if you handle files from various sources.

Installing ClamAV on Ubuntu is a straightforward process that involves a few commands in the terminal. You’ll typically use the Ubuntu package manager to get it set up quickly.

⚡ Quick Answer

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?

Completing the ClamAV installation on Ubuntu gives you a powerful antivirus program. This tool helps find and remove viruses. You’ll also have a simple way to manage its security settings, making your computer safer from online threats.

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

To install ClamAV antivirus on Ubuntu Linux, you’ll need administrator privileges. These elevated permissions let you make changes across your entire system. You may need to type your computer password to confirm these administrative actions.

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. With the software in place, 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 rather than 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
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:

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?

Was this 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.

📚 Related Tutorials

How to Install Additional Software on Ubuntu
Ubuntu Linux How to Install Additional Software on Ubuntu
How to Install i-doit on Ubuntu with Apache
CMS How to Install i-doit on Ubuntu with Apache
How to Install Apache on Ubuntu Linux
Ubuntu Linux How to Install Apache on Ubuntu Linux
How to Install Ghost on Ubuntu Linux
CMS How to Install Ghost on Ubuntu Linux

0 Comments

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

    Reply
  • Mary Serum

    Where should my files be located so I can successfully install. I continue to have unsuccessfull installation.

    Reply

Leave a Comment

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