How To Install pam_mysql on Fedora 36

In this tutorial we learn how to install pam_mysql in Fedora 36. pam_mysql is PAM module for auth UNIX users using MySQL data base

Introduction

In this tutorial we learn how to install pam_mysql on Fedora 36.

What is pam_mysql

Pam_mysql aims to provide a backend neutral means of authenticating users against an MySQL database.

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

Install pam_mysql on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install pam_mysql

Install pam_mysql on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install pam_mysql

How To Uninstall pam_mysql on Fedora 36

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

sudo dnf remove pam_mysql

pam_mysql Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/9e5d45bafe02dae8642eea25c7a583522f30cf
/usr/lib64/security/pam_mysql.so
/usr/share/doc/pam_mysql
/usr/share/doc/pam_mysql/AUTHORS
/usr/share/doc/pam_mysql/NEWS
/usr/share/doc/pam_mysql/README
/usr/share/licenses/pam_mysql
/usr/share/licenses/pam_mysql/COPYING

References

Summary

In this tutorial we learn how to install pam_mysql on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).