How To Install cron-deja-vu on Ubuntu 18.04

In this tutorial we learn how to install cron-deja-vu on Ubuntu 18.04. cron-deja-vu is filter for recurring cron mails

Introduction

In this tutorial we learn how to install cron-deja-vu on Ubuntu 18.04.

What is cron-deja-vu

cron-deja-vu is:

It filters unwanted recurring cron emails, is trained using a MailDir folder, and intended for usage with procmail. Traditional spam filters are less suitable for cron emails as these are based on probabilities and keywords. This filter applies rules to cron email to unify and filter it. E.g. All numbers are unified, or dates, one can define custom rules as regular expressions. The filter can be seen as a dynamic logcheck.

There are three methods to install cron-deja-vu 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 cron-deja-vu Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install cron-deja-vu

Install cron-deja-vu Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install cron-deja-vu using apt by running the following command:

sudo apt -y install cron-deja-vu

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

sudo aptitude -y install cron-deja-vu

How To Uninstall cron-deja-vu on Ubuntu 18.04

To uninstall only the cron-deja-vu package we can use the following command:

sudo apt-get remove cron-deja-vu

Uninstall cron-deja-vu And Its Dependencies

To uninstall cron-deja-vu and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove cron-deja-vu

Remove cron-deja-vu Configurations and Data

To remove cron-deja-vu configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge cron-deja-vu

Remove cron-deja-vu configuration, data, and all of its dependencies

We can use the following command to remove cron-deja-vu configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge cron-deja-vu

References

Summary

In this tutorial we learn how to install cron-deja-vu package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.