How To Install python-m2ext on Debian 9

In this tutorial we learn how to install python-m2ext on Debian 9. python-m2ext is Extensions to the M2Crypto Python package

Introduction

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

What is python-m2ext

python-m2ext is:

This package contains extended functionalities that are not yet available in the M2Crypto package.

M2Crypto is an SSL toolkit for Python.

There are three methods to install python-m2ext 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-m2ext 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-m2ext using apt-get by running the following command:

sudo apt-get -y install python-m2ext

Install python-m2ext Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-m2ext

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

sudo aptitude -y install python-m2ext

How To Uninstall python-m2ext on Debian 9

To uninstall only the python-m2ext package we can use the following command:

sudo apt-get remove python-m2ext

Uninstall python-m2ext And Its Dependencies

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

sudo apt-get -y autoremove python-m2ext

Remove python-m2ext Configurations and Data

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

sudo apt-get -y purge python-m2ext

Remove python-m2ext configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-m2ext

Dependencies

python-m2ext have the following dependencies:

References

Summary

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