How To Install mailman3 on Debian 11

In this tutorial we learn how to install mailman3 on Debian 11. mailman3 is Mailing list management system

Introduction

In this tutorial we learn how to install mailman3 on Debian 11.

What is mailman3

mailman3 is:

This is GNU Mailman version 3, a mailing list management system. This package provides the core delivery engine of the system, which handles the mailing lists data, receives messages, handles the moderation and processing of these messages and delivers them to the mailing lists subscribers. It communicates with the other components through a private administrative REST API.

Default database backend is SQLite3 in order to not break automated installations. For productive setups, PostgreSQL or MySQL are much better options though. See README.Debian for further information.

In order to get the full Mailman3 system, the metapackage ‘mailman3-full’ should be installed.

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

Install mailman3 Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install mailman3

Install mailman3 Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install mailman3

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

sudo aptitude -y install mailman3

How To Uninstall mailman3 on Debian 11

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

sudo apt-get remove mailman3

Uninstall mailman3 And Its Dependencies

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

sudo apt-get -y autoremove mailman3

Remove mailman3 Configurations and Data

To remove mailman3 configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge mailman3

Remove mailman3 configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge mailman3

Dependencies

mailman3 have the following dependencies:

References

Summary

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