How To Install python3-celery on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python3-celery
on Ubuntu 20.04.
What is python3-celery
python3-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 3 version of the library.
There are three methods to install python3-celery
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python3-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 python3-celery
using apt-get
by running the following command:
sudo apt-get -y install python3-celery
Install python3-celery Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-celery
using apt
by running the following command:
sudo apt -y install python3-celery
Install python3-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 Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python3-celery
using aptitude
by running the following command:
sudo aptitude -y install python3-celery
How To Uninstall python3-celery on Ubuntu 20.04
To uninstall only the python3-celery
package we can use the following command:
sudo apt-get remove python3-celery
Uninstall python3-celery And Its Dependencies
To uninstall python3-celery
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python3-celery
Remove python3-celery Configurations and Data
To remove python3-celery
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python3-celery
Remove python3-celery configuration, data, and all of its dependencies
We can use the following command to remove python3-celery
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-celery
References
Summary
In this tutorial we learn how to install python3-celery
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.