How To Install PyPAM.x86_64 on Amazon Linux 2

In this tutorial we learn how to install PyPAM.x86_64 in Amazon Linux 2. PyPAM.x86_64 is PAM bindings for Python

Introduction

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

What is PyPAM.x86_64

PAM (Pluggable Authentication Module) bindings for Python.

We can use yum to install PyPAM.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install PyPAM.x86_64.

Install PyPAM.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 PyPAM.x86_64 using yum by running the following command:

sudo yum -y install PyPAM.x86_64

How To Uninstall PyPAM.x86_64 on Amazon Linux 2

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

sudo yum remove PyPAM.x86_64

PyPAM.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/python2.7/site-packages/PAMmodule.so
/usr/lib64/python2.7/site-packages/PyPAM-0.5.0-py2.7.egg-info
/usr/share/doc/PyPAM-0.5.0
/usr/share/doc/PyPAM-0.5.0/AUTHORS
/usr/share/doc/PyPAM-0.5.0/COPYING
/usr/share/doc/PyPAM-0.5.0/ChangeLog
/usr/share/doc/PyPAM-0.5.0/INSTALL
/usr/share/doc/PyPAM-0.5.0/NEWS
/usr/share/doc/PyPAM-0.5.0/README
/usr/share/doc/PyPAM-0.5.0/examples
/usr/share/doc/PyPAM-0.5.0/examples/pamexample.c
/usr/share/doc/PyPAM-0.5.0/examples/pamtest.py

References

Summary

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