How To Install python3-rsa on Rocky Linux 8

In this tutorial we learn how to install python3-rsa on Rocky Linux 8. python3-rsa is Pure-Python RSA implementation

Introduction

In this tutorial we learn how to install python3-rsa on Rocky Linux 8.

What is python3-rsa

Python-RSA is a pure-Python RSA implementation. It supports encryption and decryption, signing and verifying signatures, and key generation according to PKCS#1 version 1.5. It can be used as a Python library as well as on the command-line.

We can use yum or dnf to install python3-rsa on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-rsa.

Install python3-rsa on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python3-rsa

Install python3-rsa on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install python3-rsa

How To Uninstall python3-rsa on Rocky Linux 8

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

sudo dnf remove python3-rsa

python3-rsa Package Contents on Rocky Linux 8

/usr/bin/pyrsa-decrypt
/usr/bin/pyrsa-decrypt-3
/usr/bin/pyrsa-decrypt-bigfile
/usr/bin/pyrsa-decrypt-bigfile-3
/usr/bin/pyrsa-encrypt
/usr/bin/pyrsa-encrypt-3
/usr/bin/pyrsa-encrypt-bigfile
/usr/bin/pyrsa-encrypt-bigfile-3
/usr/bin/pyrsa-keygen
/usr/bin/pyrsa-keygen-3
/usr/bin/pyrsa-priv2pub
/usr/bin/pyrsa-priv2pub-3
/usr/bin/pyrsa-sign
/usr/bin/pyrsa-sign-3
/usr/bin/pyrsa-verify
/usr/bin/pyrsa-verify-3
/usr/lib/python3.6/site-packages/rsa
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/entry_points.txt
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/rsa-3.4.2-py3.6.egg-info/top_level.txt
/usr/lib/python3.6/site-packages/rsa/__init__.py
/usr/lib/python3.6/site-packages/rsa/__pycache__
/usr/lib/python3.6/site-packages/rsa/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_compat.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_compat.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_version133.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_version133.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_version200.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/_version200.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/asn1.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/asn1.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/bigfile.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/bigfile.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/cli.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/cli.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/common.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/common.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/core.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/core.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/key.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/key.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/parallel.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/parallel.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/pem.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/pem.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/pkcs1.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/pkcs1.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/prime.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/prime.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/randnum.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/randnum.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/transform.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/transform.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/util.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/varblock.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/rsa/__pycache__/varblock.cpython-36.pyc
/usr/lib/python3.6/site-packages/rsa/_compat.py
/usr/lib/python3.6/site-packages/rsa/_version133.py
/usr/lib/python3.6/site-packages/rsa/_version200.py
/usr/lib/python3.6/site-packages/rsa/asn1.py
/usr/lib/python3.6/site-packages/rsa/bigfile.py
/usr/lib/python3.6/site-packages/rsa/cli.py
/usr/lib/python3.6/site-packages/rsa/common.py
/usr/lib/python3.6/site-packages/rsa/core.py
/usr/lib/python3.6/site-packages/rsa/key.py
/usr/lib/python3.6/site-packages/rsa/parallel.py
/usr/lib/python3.6/site-packages/rsa/pem.py
/usr/lib/python3.6/site-packages/rsa/pkcs1.py
/usr/lib/python3.6/site-packages/rsa/prime.py
/usr/lib/python3.6/site-packages/rsa/randnum.py
/usr/lib/python3.6/site-packages/rsa/transform.py
/usr/lib/python3.6/site-packages/rsa/util.py
/usr/lib/python3.6/site-packages/rsa/varblock.py
/usr/share/doc/python3-rsa
/usr/share/doc/python3-rsa/README.md
/usr/share/licenses/python3-rsa
/usr/share/licenses/python3-rsa/LICENSE

References

Summary

In this tutorial we learn how to install python3-rsa on Rocky Linux 8 using yum and dnf.