How To Install claws-mail-clamd-plugin on Ubuntu 18.04

In this tutorial we learn how to install claws-mail-clamd-plugin on Ubuntu 18.04. claws-mail-clamd-plugin is ClamAV socket-based plugin for Claws Mail

Introduction

In this tutorial we learn how to install claws-mail-clamd-plugin on Ubuntu 18.04.

What is claws-mail-clamd-plugin

claws-mail-clamd-plugin is:

This plugin uses Clam AntiVirus to scan all messages that are received from an IMAP, POP or local account.

When a message attachment is found to contain a virus it can be deleted or saved in a specially designated folder.

Due to licensing issues this plugin does not link against any libraries from ClamAV. The plugin therefore requires a ClamAV daemon running, either on localhost or somewhere else, for the plugin to access it via a Unix or TCP socket.

There are three methods to install claws-mail-clamd-plugin on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install claws-mail-clamd-plugin Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install claws-mail-clamd-plugin using apt-get by running the following command:

sudo apt-get -y install claws-mail-clamd-plugin

Install claws-mail-clamd-plugin Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install claws-mail-clamd-plugin using apt by running the following command:

sudo apt -y install claws-mail-clamd-plugin

Install claws-mail-clamd-plugin Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install claws-mail-clamd-plugin using aptitude by running the following command:

sudo aptitude -y install claws-mail-clamd-plugin

How To Uninstall claws-mail-clamd-plugin on Ubuntu 18.04

To uninstall only the claws-mail-clamd-plugin package we can use the following command:

sudo apt-get remove claws-mail-clamd-plugin

Uninstall claws-mail-clamd-plugin And Its Dependencies

To uninstall claws-mail-clamd-plugin and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove claws-mail-clamd-plugin

Remove claws-mail-clamd-plugin Configurations and Data

To remove claws-mail-clamd-plugin configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge claws-mail-clamd-plugin

Remove claws-mail-clamd-plugin configuration, data, and all of its dependencies

We can use the following command to remove claws-mail-clamd-plugin configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge claws-mail-clamd-plugin

References

Summary

In this tutorial we learn how to install claws-mail-clamd-plugin package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.