How To Install python-celery on Debian 10

Learn how to install python-celery on Debian 10 with this tutorial. python-celery is async task/job queue based on message passing (Python2 version)

Introduction

In this tutorial we learn how to install python-celery on Debian 10.

What is python-celery

python-celery is:

Celery is an open source asynchronous task queue/job queue based on distributed message passing. It is focused on real-time operation, but supports scheduling as well.

The execution units, called tasks, are executed concurrently on one or more worker nodes. Tasks can execute asynchronously (in the background) or synchronously (wait until ready).

Celery is written in Python, but the protocol can be implemented in any language. It can also operate with other languages using webhooks.

The recommended message broker is RabbitMQ, but limited support for Redis, Beanstalk, MongoDB, CouchDB, and databases (using SQLAlchemy or the Django ORM) is also available. Celery is easy to integrate with Django, using the python-django-celery package.

This package contains the Python 2 version of the library.

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

sudo apt-get -y install python-celery

Install python-celery Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python-celery

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

sudo aptitude -y install python-celery

How To Uninstall python-celery on Debian 10

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

sudo apt-get remove python-celery

Uninstall python-celery And Its Dependencies

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

sudo apt-get -y autoremove python-celery

Remove python-celery Configurations and Data

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

sudo apt-get -y purge python-celery

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

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

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

Dependencies

python-celery have the following dependencies:

References

Summary

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