How To Install python-gnutls on Debian 10
Introduction
In this tutorial we learn how to install python-gnutls
on Debian 10.
What is python-gnutls
python-gnutls is:
This package provides a high level object oriented wrapper around libgnutls, as well as low level bindings to the GNUTLS types and functions via ctypes. The high level wrapper hides the details of accessing the GNUTLS library via ctypes behind a set of classes that encapsulate GNUTLS sessions, certificates and credentials and expose them to Python applications using a simple API.
The package also includes a Twisted interface that has seamless intergration with Twisted, providing connectTLS and listenTLS methods on the Twisted reactor once imported (the methods are automatically attached to the reactor by simply importing the GNUTLS Twisted interface module).
There are three methods to install python-gnutls
on Debian 10. 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-gnutls 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-gnutls
using apt-get
by running the following command:
sudo apt-get -y install python-gnutls
Install python-gnutls Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-gnutls
using apt
by running the following command:
sudo apt -y install python-gnutls
Install python-gnutls 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-gnutls
using aptitude
by running the following command:
sudo aptitude -y install python-gnutls
How To Uninstall python-gnutls on Debian 10
To uninstall only the python-gnutls
package we can use the following command:
sudo apt-get remove python-gnutls
Uninstall python-gnutls And Its Dependencies
To uninstall python-gnutls
and its dependencies that are no longer needed by Debian 10, we can use the command below:
sudo apt-get -y autoremove python-gnutls
Remove python-gnutls Configurations and Data
To remove python-gnutls
configuration and data from Debian 10 we can use the following command:
sudo apt-get -y purge python-gnutls
Remove python-gnutls configuration, data, and all of its dependencies
We can use the following command to remove python-gnutls
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-gnutls
Dependencies
python-gnutls have the following dependencies:
References
Summary
In this tutorial we learn how to install python-gnutls
package on Debian 10 using different package management tools: apt
, apt-get
and aptitude
.