How To Install pamtester on CentOS 7

In this tutorial we learn how to install pamtester on CentOS 7. pamtester is Utility to test Pluggable Authentication Modules (PAM)

Introduction

In this tutorial we learn how to install pamtester on CentOS 7.

What is pamtester

Pamtester is a tiny program to test the Pluggable Authentication Modules (PAM) facility, which is a de facto standard of unified authentication management mechanism in many Unixes and similar OSes including Solaris, HP-UX, *BSD, MacOSX and Linux. While specifically designed to help PAM module authors to test their modules, that might also be handy for system administrators interested in building a centralised authentication system using common standards such as NIS, SASL and LDAP.

We can use yum or dnf to install pamtester on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install pamtester.

Install pamtester on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install pamtester using yum by running the following command:

sudo yum -y install pamtester

Install pamtester on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install pamtester

How To Uninstall pamtester on CentOS 7

To uninstall only the pamtester package we can use the following command:

sudo dnf remove pamtester

References

Summary

In this tutorial we learn how to install pamtester on CentOS 7 using yum and dnf.