How To Install cracklib on Fedora 34
Introduction
In this tutorial we learn how to install cracklib
on Fedora 34.
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. cracklib 2.9.6 25.fc34 i686 83 k cracklib-2.9.6-25.fc34.src.rpm fedora A password-checking library http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install cracklib.
Install cracklib on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install cracklib
using dnf
by running the following command:
sudo dnf -y install cracklib
Install cracklib on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the cracklib
package we can use the following command:
sudo dnf remove cracklib
cracklib Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/20
/usr/lib/.build-id/20/19358133969dd7bbd5a5723d2d9f7c29b30070
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/c4a0d23150b016d0dd307e32e5cff633a35940
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/b05e8a61cbae7a4710210d13157fd5d877ac88
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/1cfba8ec2489aa8a61880e3e067bfbc2e2d67b
/usr/lib/libcrack.so.2
/usr/lib/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
/usr/share/doc/cracklib/AUTHORS
/usr/share/doc/cracklib/NEWS
/usr/share/doc/cracklib/README
/usr/share/doc/cracklib/README-LICENSE
/usr/share/doc/cracklib/README-WORDS
/usr/share/licenses/cracklib
/usr/share/licenses/cracklib/COPYING.LIB
/usr/share/locale/as/LC_MESSAGES/cracklib.mo
/usr/share/locale/be/LC_MESSAGES/cracklib.mo
/usr/share/locale/bn_IN/LC_MESSAGES/cracklib.mo
/usr/share/locale/ca/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/eu/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/he/LC_MESSAGES/cracklib.mo
/usr/share/locale/hi/LC_MESSAGES/cracklib.mo
/usr/share/locale/hu/LC_MESSAGES/cracklib.mo
/usr/share/locale/id/LC_MESSAGES/cracklib.mo
/usr/share/locale/it/LC_MESSAGES/cracklib.mo
/usr/share/locale/ja/LC_MESSAGES/cracklib.mo
/usr/share/locale/kk/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/sq/LC_MESSAGES/cracklib.mo
/usr/share/locale/sv/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
/usr/lib/.build-id
/usr/lib/.build-id/72
/usr/lib/.build-id/72/ce44071905fc1d7aaa5542c563bbb2a70472e6
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/dc3350be06b0d4cfa24ac68308694bd2df9171
/usr/lib/.build-id/cf
/usr/lib/.build-id/cf/1a6f3b8c2ef05310e4c64a10974409d6653fb8
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/0aeab9affd307c0a2ebfa0501e9ad1466309b4
/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
/usr/share/doc/cracklib/AUTHORS
/usr/share/doc/cracklib/NEWS
/usr/share/doc/cracklib/README
/usr/share/doc/cracklib/README-LICENSE
/usr/share/doc/cracklib/README-WORDS
/usr/share/licenses/cracklib
/usr/share/licenses/cracklib/COPYING.LIB
/usr/share/locale/as/LC_MESSAGES/cracklib.mo
/usr/share/locale/be/LC_MESSAGES/cracklib.mo
/usr/share/locale/bn_IN/LC_MESSAGES/cracklib.mo
/usr/share/locale/ca/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/eu/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/he/LC_MESSAGES/cracklib.mo
/usr/share/locale/hi/LC_MESSAGES/cracklib.mo
/usr/share/locale/hu/LC_MESSAGES/cracklib.mo
/usr/share/locale/id/LC_MESSAGES/cracklib.mo
/usr/share/locale/it/LC_MESSAGES/cracklib.mo
/usr/share/locale/ja/LC_MESSAGES/cracklib.mo
/usr/share/locale/kk/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/sq/LC_MESSAGES/cracklib.mo
/usr/share/locale/sv/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
- [cracklib website](http://sourceforge.net/projects/cracklib/ http://sourceforge.net/projects/cracklib/)
Summary
In this tutorial we learn how to install cracklib
on Fedora 34 using yum and dnf.