How To Install mailman on Debian 9

In this tutorial we learn how to install mailman on Debian 9. mailman is Powerful, web-based mailing list manager

Introduction

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

What is mailman

mailman is:

The GNU Mailing List Manager, which manages email discussion lists much like Majordomo and Smartmail. Unlike most similar products, Mailman gives each mailing list a web page, and allows users to subscribe, unsubscribe, etc. over the web. Even the list manager can administer his or her list entirely from the web.

Mailman also integrates most things people want to do with mailing lists, including archiving, mail <-> news gateways, and so on. It has all of the features you expect from such a product, plus integrated support for the web (including web based archiving), automated bounce handling and integrated spam prevention.

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

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

sudo apt-get update

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

sudo apt-get -y install mailman

Install mailman Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mailman

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

sudo aptitude -y install mailman

How To Uninstall mailman on Debian 9

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

sudo apt-get remove mailman

Uninstall mailman And Its Dependencies

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

sudo apt-get -y autoremove mailman

Remove mailman Configurations and Data

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

sudo apt-get -y purge mailman

Remove mailman configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mailman

Dependencies

mailman have the following dependencies:

References

Summary

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