How To Install celeryd on Debian 9

In this tutorial we learn how to install celeryd on Debian 9. celeryd is async task/job queue based on message passing (daemons)

Introduction

In this tutorial we learn how to install celeryd on Debian 9.

What is celeryd

celeryd 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 init scripts to start the celery daemons.

There are three methods to install celeryd 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 celeryd Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

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

sudo apt-get -y install celeryd

Install celeryd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install celeryd using apt by running the following command:

sudo apt -y install celeryd

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

sudo aptitude -y install celeryd

How To Uninstall celeryd on Debian 9

To uninstall only the celeryd package we can use the following command:

sudo apt-get remove celeryd

Uninstall celeryd And Its Dependencies

To uninstall celeryd and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove celeryd

Remove celeryd Configurations and Data

To remove celeryd configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge celeryd

Remove celeryd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge celeryd

Dependencies

celeryd have the following dependencies:

References

Summary

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