How To Install spamc on Ubuntu 20.04

In this tutorial we learn how to install spamc on Ubuntu 20.04. spamc is Client for SpamAssassin spam filtering daemon Client for SpamAssassin spam filtering daemon

Introduction

In this tutorial we learn how to install spamc on Ubuntu 20.04.

What is spamc

spamc is:

spamc is the client to communicate with spamd, the daemonized form of SpamAssassin (see the spamassassin package). It is written in C for maximum speed and minimum loading overhead.

spamc is quite useful for integrating spamassassin into an MTA or into a .procmailrc file because of its speed.

This package is useless unless you have spamassassin installed, either on this machine or another local machine (i.e. a mail server).

Package: spamc Architecture: amd64 Version: 3.4.4-1ubuntu1 Multi-Arch: foreign Priority: optional Section: mail Source: spamassassin Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Noah Meyerhans [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 142 Depends: libc6 (>= 2.14), libssl1.1 (>= 1.1.0) Suggests: spamassassin Filename: pool/main/s/spamassassin/spamc_3.4.4-1ubuntu1_amd64.deb Size: 53064 MD5sum: b4d85555fcf55dcebf5f19de66ced541 SHA1: 8a7a2b0f4540fe63eca4549fa561dac54dbf8dbe SHA256: c2be594d005aee508c23bd40630c3f685d536935c089203aec703aa800d22dbf Homepage: https://www.spamassassin.org/ Description-en: Client for SpamAssassin spam filtering daemon spamc is the client to communicate with spamd, the daemonized form of SpamAssassin (see the spamassassin package). It is written in C for maximum speed and minimum loading overhead.

spamc is quite useful for integrating spamassassin into an MTA or into a .procmailrc file because of its speed.

This package is useless unless you have spamassassin installed, either on this machine or another local machine (i.e. a mail server).

There are three methods to install spamc on Ubuntu 20.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 spamc Using apt-get

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

sudo apt-get update

After updating apt database, We can install spamc using apt-get by running the following command:

sudo apt-get -y install spamc

Install spamc Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install spamc using apt by running the following command:

sudo apt -y install spamc

Install spamc 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 spamc using aptitude by running the following command:

sudo aptitude -y install spamc

How To Uninstall spamc on Ubuntu 20.04

To uninstall only the spamc package we can use the following command:

sudo apt-get remove spamc

Uninstall spamc And Its Dependencies

To uninstall spamc and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove spamc

Remove spamc Configurations and Data

To remove spamc configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge spamc

Remove spamc configuration, data, and all of its dependencies

We can use the following command to remove spamc configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge spamc

References

Summary

In this tutorial we learn how to install spamc package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.