How To Install enmime on Debian 12

Learn how to install enmime on Debian 12 with this tutorial. enmime is MIME mail encoding and decoding package for Go (program)

Introduction

In this tutorial we learn how to install enmime on Debian 12.

What is enmime

enmime is:

enmime is a MIME encoding and decoding library for Go, focused on generating and parsing MIME encoded emails. It is being developed in tandem with the Inbucket email service.

enmime includes a fluent interface builder for generating MIME encoded messages.

This is the binary package for the same containing mime-extractor and mime-dump utilities.

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

Install enmime Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install enmime

Install enmime Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install enmime

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

sudo aptitude -y install enmime

How To Uninstall enmime on Debian 12

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

sudo apt-get remove enmime

Uninstall enmime And Its Dependencies

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

sudo apt-get -y autoremove enmime

Remove enmime Configurations and Data

To remove enmime configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge enmime

Remove enmime configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge enmime

Dependencies

enmime have the following dependencies:

References

Summary

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