How To Install razor on Debian 9

In this tutorial we learn how to install razor on Debian 9. razor is spam-catcher using a collaborative filtering network

Introduction

In this tutorial we learn how to install razor on Debian 9.

What is razor

razor is:

Vipul’s Razor is a distributed, collaborative, spam detection and filtering network. Razor establishes a distributed and constantly updating catalogue of spam in propagation. This catalogue is used by clients to filter out known spam. On receiving a spam, a Razor Reporting Agent (run by an end-user or a troll box) calculates and submits a 20-character unique identification of the spam (a SHA Digest) to its closest Razor Catalogue Server. The Catalogue Server echos this signature to other trusted servers after storing it in its database. Prior to manual processing or transport-level reception, Razor Filtering Agents (end-users and MTAs) check their incoming mail against a Catalogue Server and filter out or deny transport in case of a signature match. Catalogued spam, once identified and reported by a Reporting Agent, can be blocked out by the rest of the Filtering Agents on the network.

There are three methods to install razor on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install razor Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install razor

Install razor Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install razor

Install razor 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install razor

How To Uninstall razor on Debian 9

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

sudo apt-get remove razor

Uninstall razor And Its Dependencies

To uninstall razor and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove razor

Remove razor Configurations and Data

To remove razor configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge razor

Remove razor configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge razor

Dependencies

razor have the following dependencies:

References

Summary

In this tutorial we learn how to install razor package on Debian 9 using different package management tools: apt, apt-get and aptitude.