How To Uninstall Clamav On Ubuntu?

Uninstall Clamav From Ubuntu

Clam AntiVirus (ClamAV) is a free open source command-line interface antivirus software used to detect Trojans and malicious programs on your Linux Operating System. Uninstalling ClamAV on your Ubuntu makes the device vulnerable to threats. In case you wish to uninstall clamav on Ubuntu desktop, go through the steps given below.

Launching Terminal:

On your Ubuntu desktop, open the command-line interface (Terminal). For that, do any one of the following.

  • Press the Ctrl + Alt + T shortcut keys simultaneously.
  • Click the Show Applications icon on the dash bar. Type 'terminal' in the search field and then double-click the Terminal icon from the search result.
  • Press the Alt + F2 keys simultaneously to open a Run dialog box. Type 'gnome-terminal' below the Run a Command tab and hit the Enter key.
Uninstall Clamav On Ubuntu

Remove Clamav On Ubuntu

Case 1: Clamav Installed From Source

  • If you have installed ClamAV from the source, type the './configure' command in the Terminal window and hit the Enter key.
  • Type the 'sudo make uninstall' command and hit the Enter key to uninstall ClamAV on Ubuntu.
  • To make sure you haven't got any old libraries lying around your file system, type the "$ ldd 'which freshclam'" command in the Terminal window and press the Enter key.. This will verify the old libraries on your file system.
  • To check if there is only one version of ClamAV installed on your Ubuntu desktop, type the following command and hit the Enter key.
  • $ whereis freshclam
  • $ whereis clamscan
  • After ensuring that you have removed all the files related to ClamAV on your Ubuntu, close the Terminal window and restart your computer.

Case 2: Clamav Installed From Packages

  • To uninstall the ClamAV package alone from your Ubuntu desktop, type the 'sudo apt-get remove clamav' command in the Terminal window and hit the Enter key.
  • To remove ClamAV and its dependent packages, type the 'sudo apt-get autoremove clamav' command in the Terminal window and hit the Enter key.
  • If you wish to remove the packages and the configuration files related to them, enter the 'sudo apt-get purge clamav' command and hit the Enter key. Also, remove their dependencies by typing the 'sudo apt-get autoremove –purge clamv' command.

You have now seen how to completely uninstall ClamAV on Ubuntu. For more assistance, Call us by clicking the call button and get instant solution