How To Install cracklib on AlmaLinux 8
Introduction
In this tutorial we learn how to install cracklib
on AlmaLinux 8.
What is cracklib
CrackLib tests passwords to determine whether they match certain security-oriented characteristics, with the purpose of stopping users from choosing passwords that are easy to guess. CrackLib performs several tests on passwords and gecos entry and checks those words against the password; it checks for simplistic patterns in passwords; and it checks for the password in a dictionary. CrackLib is actually a library containing a particular C function which is used to check the password, as well as other C functions. CrackLib is not a replacement for a passwd program; it must be used in conjunction with an existing passwd program. Install the cracklib package if you need a program to check users’ passwords to see if they are at least minimally secure. If you install CrackLib, you will also want to install the cracklib-dicts package.
We can use yum
or dnf
to install cracklib
on AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install cracklib.
Install cracklib 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 cracklib
using dnf
by running the following command:
sudo dnf -y install cracklib
Install cracklib 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 cracklib
using yum
by running the following command:
sudo yum -y install cracklib
How To Uninstall cracklib on AlmaLinux 8
To uninstall only the cracklib
package we can use the following command:
sudo dnf remove cracklib
References
Summary
In this tutorial we learn how to install cracklib
on AlmaLinux 8 using yum and dnf.