How To Install python3-jose on Fedora 36

In this tutorial we learn how to install python3-jose in Fedora 36. python3-jose is A JOSE implementation in Python

Introduction

In this tutorial we learn how to install python3-jose on Fedora 36.

What is python3-jose

The JavaScript Object Signing and Encryption (JOSE) technologies - JSON Web Signature (JWS), JSON Web Encryption (JWE), JSON Web Key (JWK), and JSON Web Algorithms (JWA) - collectively can be used to encrypt and/or sign content using a variety of algorithms. While the full set of permutations is extremely large, and might be daunting to some, it is expected that most applications will only use a small set of algorithms to meet their needs. As of 3.3.0, python-jose implements three different cryptographic backends. The backend must be selected as an extra when installing python-jose. If you do not select a backend, the native-python backend will be installed. Unless otherwise noted, all backends support all operations. Due to complexities with setuptools, the native-python backend is always installed, even if you select a different backend on install. 1. cryptography * This backend uses pyca/cryptography for all cryptographic operations. This is the recommended backend and is selected over all other backends if any others are present. * Installation * Unused dependencies - rsa - ecdsa - pyasn1 2. pycryptodome * This backend uses pycryptodome for all cryptographic operations. * Installation pycryptodomex, conflicts with pycrypto) is not packaged * Unused dependencies - rsa 3. native-python * This backend uses python-rsa and python-ecdsa for all cryptographic operations. This backend is always installed but any other backend will take precedence if one is installed. * Installation Note The native-python backend cannot process certificates.

We can use yum or dnf to install python3-jose on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-jose.

Install python3-jose on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-jose using dnf by running the following command:

sudo dnf -y install python3-jose

Install python3-jose on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-jose using yum by running the following command:

sudo yum -y install python3-jose

How To Uninstall python3-jose on Fedora 36

To uninstall only the python3-jose package we can use the following command:

sudo dnf remove python3-jose

python3-jose Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/jose
/usr/lib/python3.10/site-packages/jose/__init__.py
/usr/lib/python3.10/site-packages/jose/__pycache__
/usr/lib/python3.10/site-packages/jose/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/constants.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/constants.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/exceptions.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/exceptions.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwe.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwe.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwk.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwk.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jws.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jws.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwt.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/jwt.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/utils.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/__pycache__/utils.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends
/usr/lib/python3.10/site-packages/jose/backends/__init__.py
/usr/lib/python3.10/site-packages/jose/backends/__pycache__
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/_asn1.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/_asn1.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/base.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/base.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/cryptography_backend.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/cryptography_backend.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/ecdsa_backend.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/ecdsa_backend.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/native.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/native.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/rsa_backend.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/jose/backends/__pycache__/rsa_backend.cpython-310.pyc
/usr/lib/python3.10/site-packages/jose/backends/_asn1.py
/usr/lib/python3.10/site-packages/jose/backends/base.py
/usr/lib/python3.10/site-packages/jose/backends/cryptography_backend.py
/usr/lib/python3.10/site-packages/jose/backends/ecdsa_backend.py
/usr/lib/python3.10/site-packages/jose/backends/native.py
/usr/lib/python3.10/site-packages/jose/backends/rsa_backend.py
/usr/lib/python3.10/site-packages/jose/constants.py
/usr/lib/python3.10/site-packages/jose/exceptions.py
/usr/lib/python3.10/site-packages/jose/jwe.py
/usr/lib/python3.10/site-packages/jose/jwk.py
/usr/lib/python3.10/site-packages/jose/jws.py
/usr/lib/python3.10/site-packages/jose/jwt.py
/usr/lib/python3.10/site-packages/jose/utils.py
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info/LICENSE
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info/METADATA
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info/WHEEL
/usr/lib/python3.10/site-packages/python_jose-3.3.0.dist-info/top_level.txt
/usr/share/doc/python3-jose
/usr/share/doc/python3-jose/README.rst

References

Summary

In this tutorial we learn how to install python3-jose on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).