How To Install python3-pyOpenSSL on Rocky Linux 8

In this tutorial we learn how to install python3-pyOpenSSL on Rocky Linux 8. python3-pyOpenSSL is Python 3 wrapper module around the OpenSSL library

Introduction

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

What is python3-pyOpenSSL

High-level wrapper around a subset of the OpenSSL library, includes among others * SSL.Connection objects, wrapping the methods of Python’s portable sockets * Callbacks written in Python * Extensive error-handling mechanism, mirroring OpenSSL’s error codes

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

Install python3-pyOpenSSL 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-pyOpenSSL using dnf by running the following command:

sudo dnf -y install python3-pyOpenSSL

Install python3-pyOpenSSL 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-pyOpenSSL using yum by running the following command:

sudo yum -y install python3-pyOpenSSL

How To Uninstall python3-pyOpenSSL on Rocky Linux 8

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

sudo dnf remove python3-pyOpenSSL

python3-pyOpenSSL Package Contents on Rocky Linux 8

/usr/lib/python3.6/site-packages/OpenSSL
/usr/lib/python3.6/site-packages/OpenSSL/SSL.py
/usr/lib/python3.6/site-packages/OpenSSL/__init__.py
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/SSL.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/SSL.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/__init__.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/_util.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/_util.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/crypto.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/crypto.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/debug.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/debug.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/rand.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/rand.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/tsafe.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/tsafe.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/version.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/OpenSSL/__pycache__/version.cpython-36.pyc
/usr/lib/python3.6/site-packages/OpenSSL/_util.py
/usr/lib/python3.6/site-packages/OpenSSL/crypto.py
/usr/lib/python3.6/site-packages/OpenSSL/debug.py
/usr/lib/python3.6/site-packages/OpenSSL/rand.py
/usr/lib/python3.6/site-packages/OpenSSL/tsafe.py
/usr/lib/python3.6/site-packages/OpenSSL/version.py
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info/PKG-INFO
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info/SOURCES.txt
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info/dependency_links.txt
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info/requires.txt
/usr/lib/python3.6/site-packages/pyOpenSSL-19.0.0-py3.6.egg-info/top_level.txt
/usr/share/licenses/python3-pyOpenSSL
/usr/share/licenses/python3-pyOpenSSL/LICENSE

References

Summary

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