How To Install python-zope.sendmail on Debian 9

In this tutorial we learn how to install python-zope.sendmail on Debian 9. python-zope.sendmail is Mail sending library for zope

Introduction

In this tutorial we learn how to install python-zope.sendmail on Debian 9.

What is python-zope.sendmail

python-zope.sendmail is:

This package is useful when your Zope 3 application wants to send email. It integrates with the transaction mechanism and queues your emails to be sent on successful commits only.

There are three methods to install python-zope.sendmail 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 python-zope.sendmail Using apt-get

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

sudo apt-get update

After updating apt database, We can install python-zope.sendmail using apt-get by running the following command:

sudo apt-get -y install python-zope.sendmail

Install python-zope.sendmail Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-zope.sendmail using apt by running the following command:

sudo apt -y install python-zope.sendmail

Install python-zope.sendmail 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 python-zope.sendmail using aptitude by running the following command:

sudo aptitude -y install python-zope.sendmail

How To Uninstall python-zope.sendmail on Debian 9

To uninstall only the python-zope.sendmail package we can use the following command:

sudo apt-get remove python-zope.sendmail

Uninstall python-zope.sendmail And Its Dependencies

To uninstall python-zope.sendmail and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-zope.sendmail

Remove python-zope.sendmail Configurations and Data

To remove python-zope.sendmail configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-zope.sendmail

Remove python-zope.sendmail configuration, data, and all of its dependencies

We can use the following command to remove python-zope.sendmail configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-zope.sendmail

Dependencies

python-zope.sendmail have the following dependencies:

References

Summary

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