How To Install python-django-websocket-redis on Debian 10

Learn how to install python-django-websocket-redis on Debian 10 with this tutorial. python-django-websocket-redis is Websockets for Django applications using Redis (Python2 version)

Introduction

In this tutorial we learn how to install python-django-websocket-redis on Debian 10.

What is python-django-websocket-redis

python-django-websocket-redis is:

This module implements websockets on top of Django without requiring any additional framework. For messaging it uses the Redis datastore. In a production environment, it is intended to work under uWSGI and behind NGiNX or Apache. In a development environment, it can be used with the Django built-in webserver.

This package contains the Python 2 version of the library.

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

sudo apt-get -y install python-django-websocket-redis

Install python-django-websocket-redis Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-django-websocket-redis

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

sudo aptitude -y install python-django-websocket-redis

How To Uninstall python-django-websocket-redis on Debian 10

To uninstall only the python-django-websocket-redis package we can use the following command:

sudo apt-get remove python-django-websocket-redis

Uninstall python-django-websocket-redis And Its Dependencies

To uninstall python-django-websocket-redis and its dependencies that are no longer needed by Debian 10, we can use the command below:

sudo apt-get -y autoremove python-django-websocket-redis

Remove python-django-websocket-redis Configurations and Data

To remove python-django-websocket-redis configuration and data from Debian 10 we can use the following command:

sudo apt-get -y purge python-django-websocket-redis

Remove python-django-websocket-redis configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python-django-websocket-redis

Dependencies

python-django-websocket-redis have the following dependencies:

References

Summary

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