How To Install pyOpenSSL.x86_64 on Amazon Linux 2

In this tutorial we learn how to install pyOpenSSL.x86_64 in Amazon Linux 2. pyOpenSSL.x86_64 is Python wrapper module around the OpenSSL library

Introduction

In this tutorial we learn how to install pyOpenSSL.x86_64 on Amazon Linux 2.

What is pyOpenSSL.x86_64

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 to install pyOpenSSL.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install pyOpenSSL.x86_64.

Install pyOpenSSL.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install pyOpenSSL.x86_64 using yum by running the following command:

sudo yum -y install pyOpenSSL.x86_64

How To Uninstall pyOpenSSL.x86_64 on Amazon Linux 2

To uninstall only the pyOpenSSL.x86_64 package we can use the following command:

sudo yum remove pyOpenSSL.x86_64

pyOpenSSL.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/OpenSSL
/usr/lib64/python2.7/site-packages/OpenSSL/SSL.so
/usr/lib64/python2.7/site-packages/OpenSSL/__init__.py
/usr/lib64/python2.7/site-packages/OpenSSL/__init__.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/__init__.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/crypto.so
/usr/lib64/python2.7/site-packages/OpenSSL/rand.so
/usr/lib64/python2.7/site-packages/OpenSSL/test
/usr/lib64/python2.7/site-packages/OpenSSL/test/__init__.py
/usr/lib64/python2.7/site-packages/OpenSSL/test/__init__.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/test/__init__.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_crypto.py
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_crypto.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_crypto.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_rand.py
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_rand.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_rand.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.py
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/test/test_ssl.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/test/util.py
/usr/lib64/python2.7/site-packages/OpenSSL/test/util.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/test/util.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/tsafe.py
/usr/lib64/python2.7/site-packages/OpenSSL/tsafe.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/tsafe.pyo
/usr/lib64/python2.7/site-packages/OpenSSL/version.py
/usr/lib64/python2.7/site-packages/OpenSSL/version.pyc
/usr/lib64/python2.7/site-packages/OpenSSL/version.pyo
/usr/lib64/python2.7/site-packages/pyOpenSSL-0.13.1-py2.7.egg-info

References

Summary

In this tutorial we learn how to install pyOpenSSL.x86_64 on Amazon Linux 2 using yum.