How To Install passwd on AlmaLinux 8

In this tutorial we learn how to install passwd in AlmaLinux 8. passwd is An utility for setting or changing passwords using PAM

Introduction

In this tutorial we learn how to install passwd on AlmaLinux 8.

What is passwd

This package contains a system utility (passwd) which sets or changes passwords, using PAM (Pluggable Authentication Modules) library.

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

Install passwd on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install passwd

Install passwd on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install passwd

How To Uninstall passwd on AlmaLinux 8

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

sudo dnf remove passwd

References

Summary

In this tutorial we learn how to install passwd on AlmaLinux 8 using yum and dnf.