How To Install python3-djangorestframework-simplejwt on Ubuntu 22.04
Introduction
In this tutorial we learn how to install python3-djangorestframework-simplejwt
on Ubuntu 22.04.
What is python3-djangorestframework-simplejwt
python3-djangorestframework-simplejwt is:
Simple JWT provides a JSON Web Token authentication backend for the Django REST Framework. It aims to cover the most common use cases of JWTs by offering a conservative set of default features. It also aims to be easily extensible in case a desired feature is not present.
This package contains the Python 3 version of the library.
There are three methods to install python3-djangorestframework-simplejwt
on Ubuntu 22.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-djangorestframework-simplejwt 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-djangorestframework-simplejwt
using apt-get
by running the following command:
sudo apt-get -y install python3-djangorestframework-simplejwt
Install python3-djangorestframework-simplejwt Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python3-djangorestframework-simplejwt
using apt
by running the following command:
sudo apt -y install python3-djangorestframework-simplejwt
Install python3-djangorestframework-simplejwt 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-djangorestframework-simplejwt
using aptitude
by running the following command:
sudo aptitude -y install python3-djangorestframework-simplejwt
How To Uninstall python3-djangorestframework-simplejwt on Ubuntu 22.04
To uninstall only the python3-djangorestframework-simplejwt
package we can use the following command:
sudo apt-get remove python3-djangorestframework-simplejwt
Uninstall python3-djangorestframework-simplejwt And Its Dependencies
To uninstall python3-djangorestframework-simplejwt
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove python3-djangorestframework-simplejwt
Remove python3-djangorestframework-simplejwt Configurations and Data
To remove python3-djangorestframework-simplejwt
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge python3-djangorestframework-simplejwt
Remove python3-djangorestframework-simplejwt configuration, data, and all of its dependencies
We can use the following command to remove python3-djangorestframework-simplejwt
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python3-djangorestframework-simplejwt
References
- python3-djangorestframework-simplejwt website
- python3-djangorestframework-simplejwt on packages.ubuntu.com
Summary
In this tutorial we learn how to install python3-djangorestframework-simplejwt
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.