How To Install python-ldappool on Debian 9
Introduction
In this tutorial we learn how to install python-ldappool
on Debian 9.
What is python-ldappool
python-ldappool is:
A simple connector pool for python-ldap. The pool keeps LDAP connectors alive and let you reuse them, drastically reducing the time spent to initiate a ldap connection.
The pool has useful features like:
- transparent reconnection on failures or server restarts
- configurable pool size and connectors timeouts
- configurable max lifetime for connectors
- a context manager to simplify acquiring and releasing a connector
This package provides the Python 2.7 module.
There are three methods to install python-ldappool
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-ldappool 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-ldappool
using apt-get
by running the following command:
sudo apt-get -y install python-ldappool
Install python-ldappool Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-ldappool
using apt
by running the following command:
sudo apt -y install python-ldappool
Install python-ldappool 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-ldappool
using aptitude
by running the following command:
sudo aptitude -y install python-ldappool
How To Uninstall python-ldappool on Debian 9
To uninstall only the python-ldappool
package we can use the following command:
sudo apt-get remove python-ldappool
Uninstall python-ldappool And Its Dependencies
To uninstall python-ldappool
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-ldappool
Remove python-ldappool Configurations and Data
To remove python-ldappool
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-ldappool
Remove python-ldappool configuration, data, and all of its dependencies
We can use the following command to remove python-ldappool
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-ldappool
Dependencies
python-ldappool have the following dependencies:
References
Summary
In this tutorial we learn how to install python-ldappool
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.