How To Install python-trollius-redis on Debian 9
Introduction
In this tutorial we learn how to install python-trollius-redis on Debian 9.
What is python-trollius-redis
python-trollius-redis is:
Completely asynchronous, non-blocking client for a Redis server. It depends on trollius (asyncio compatible for PEP 3156). It supports Python 2 and 3 Trollius-using developers.
Features
- Works for the trollius asyncio-compatible (PEP3156) event loop
- No dependencies except trollius
- Connection pooling
- Automatic conversion from unicode (Python) to bytes (inside Redis.)
- Bytes and str protocols.
- Completely tested
- Blocking calls and transactions supported
- Streaming of some multi bulk replies
- Pubsub support
This package installs the library for Python 2.
There are three methods to install python-trollius-redis 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-trollius-redis 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-trollius-redis using apt-get by running the following command:
sudo apt-get -y install python-trollius-redis
Install python-trollius-redis Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install python-trollius-redis using apt by running the following command:
sudo apt -y install python-trollius-redis
Install python-trollius-redis 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-trollius-redis using aptitude by running the following command:
sudo aptitude -y install python-trollius-redis
How To Uninstall python-trollius-redis on Debian 9
To uninstall only the python-trollius-redis package we can use the following command:
sudo apt-get remove python-trollius-redis
Uninstall python-trollius-redis And Its Dependencies
To uninstall python-trollius-redis and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove python-trollius-redis
Remove python-trollius-redis Configurations and Data
To remove python-trollius-redis configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge python-trollius-redis
Remove python-trollius-redis configuration, data, and all of its dependencies
We can use the following command to remove python-trollius-redis configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-trollius-redis
Dependencies
python-trollius-redis have the following dependencies:
References
Summary
In this tutorial we learn how to install python-trollius-redis package on Debian 9 using different package management tools: apt, apt-get and aptitude.