How To Install cracklib.x86_64 on Amazon Linux 2

In this tutorial we learn how to install cracklib.x86_64 in Amazon Linux 2. cracklib.x86_64 is A password-checking library

Introduction

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

What is cracklib.x86_64

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 from a username 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 to install cracklib.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install cracklib.x86_64.

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

sudo yum -y install cracklib.x86_64

How To Uninstall cracklib.x86_64 on Amazon Linux 2

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

sudo yum remove cracklib.x86_64

cracklib.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libcrack.so.2
/usr/lib64/libcrack.so.2.9.0
/usr/sbin/cracklib-check
/usr/sbin/cracklib-format
/usr/sbin/cracklib-packer
/usr/sbin/cracklib-unpacker
/usr/sbin/create-cracklib-dict
/usr/share/cracklib
/usr/share/cracklib/cracklib.magic
/usr/share/doc/cracklib-2.9.0
/usr/share/doc/cracklib-2.9.0/AUTHORS
/usr/share/doc/cracklib-2.9.0/COPYING.LIB
/usr/share/doc/cracklib-2.9.0/NEWS
/usr/share/doc/cracklib-2.9.0/README
/usr/share/doc/cracklib-2.9.0/README-LICENSE
/usr/share/doc/cracklib-2.9.0/README-WORDS
/usr/share/locale/as/LC_MESSAGES/cracklib.mo
/usr/share/locale/bn_IN/LC_MESSAGES/cracklib.mo
/usr/share/locale/cs/LC_MESSAGES/cracklib.mo
/usr/share/locale/da/LC_MESSAGES/cracklib.mo
/usr/share/locale/de/LC_MESSAGES/cracklib.mo
/usr/share/locale/el/LC_MESSAGES/cracklib.mo
/usr/share/locale/es/LC_MESSAGES/cracklib.mo
/usr/share/locale/fi/LC_MESSAGES/cracklib.mo
/usr/share/locale/fr/LC_MESSAGES/cracklib.mo
/usr/share/locale/gu/LC_MESSAGES/cracklib.mo
/usr/share/locale/hi/LC_MESSAGES/cracklib.mo
/usr/share/locale/hu/LC_MESSAGES/cracklib.mo
/usr/share/locale/it/LC_MESSAGES/cracklib.mo
/usr/share/locale/ja/LC_MESSAGES/cracklib.mo
/usr/share/locale/kn/LC_MESSAGES/cracklib.mo
/usr/share/locale/ko/LC_MESSAGES/cracklib.mo
/usr/share/locale/lt/LC_MESSAGES/cracklib.mo
/usr/share/locale/ml/LC_MESSAGES/cracklib.mo
/usr/share/locale/mr/LC_MESSAGES/cracklib.mo
/usr/share/locale/nb/LC_MESSAGES/cracklib.mo
/usr/share/locale/nl/LC_MESSAGES/cracklib.mo
/usr/share/locale/or/LC_MESSAGES/cracklib.mo
/usr/share/locale/pa/LC_MESSAGES/cracklib.mo
/usr/share/locale/pl/LC_MESSAGES/cracklib.mo
/usr/share/locale/pt/LC_MESSAGES/cracklib.mo
/usr/share/locale/pt_BR/LC_MESSAGES/cracklib.mo
/usr/share/locale/ru/LC_MESSAGES/cracklib.mo
/usr/share/locale/sk/LC_MESSAGES/cracklib.mo
/usr/share/locale/sl_SI/LC_MESSAGES/cracklib.mo
/usr/share/locale/ta/LC_MESSAGES/cracklib.mo
/usr/share/locale/te/LC_MESSAGES/cracklib.mo
/usr/share/locale/tr/LC_MESSAGES/cracklib.mo
/usr/share/locale/uk/LC_MESSAGES/cracklib.mo
/usr/share/locale/zh_CN/LC_MESSAGES/cracklib.mo
/usr/share/locale/zh_TW/LC_MESSAGES/cracklib.mo
/usr/share/man/man8/cracklib-check.8.gz
/usr/share/man/man8/cracklib-format.8.gz
/usr/share/man/man8/cracklib-packer.8.gz
/usr/share/man/man8/cracklib-unpacker.8.gz
/usr/share/man/man8/create-cracklib-dict.8.gz
/usr/share/man/man8/update-cracklib.8.gz

References

Summary

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