How To Install libpam-cracklib on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libpam-cracklib
on Ubuntu 20.04.
What is libpam-cracklib
libpam-cracklib is:
This package includes libpam_cracklib, a PAM module that tests passwords to make sure they are not too weak during password change.
Package: libpam-cracklib Architecture: amd64 Version: 1.3.1-5ubuntu4 Multi-Arch: same Priority: optional Section: admin Source: pam Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Steve Langasek [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 98 Depends: libc6 (>= 2.14), libcrack2 (>= 2.8.12), libpam0g (>= 1.1.1), libpam-runtime (>= 1.0.1-6), cracklib-runtime, wamerican | wordlist Replaces: libpam-modules (« 1.1.0-3), libpam0g-cracklib Filename: pool/main/p/pam/libpam-cracklib_1.3.1-5ubuntu4_amd64.deb Size: 13004 MD5sum: 581b548a7d98bb3c0281c420c082abf7 SHA1: 932e175ad124b65acc85b418569dccb594494ff1 SHA256: de2f9ac0b5222cc4a13356411d6cf87f08148268c6a3c247ce6be79f440d3b1d Homepage: http://www.linux-pam.org/ Description-en: PAM module to enable cracklib support This package includes libpam_cracklib, a PAM module that tests passwords to make sure they are not too weak during password change.
There are three methods to install libpam-cracklib
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libpam-cracklib Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libpam-cracklib
using apt-get
by running the following command:
sudo apt-get -y install libpam-cracklib
Install libpam-cracklib Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpam-cracklib
using apt
by running the following command:
sudo apt -y install libpam-cracklib
Install libpam-cracklib Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libpam-cracklib
using aptitude
by running the following command:
sudo aptitude -y install libpam-cracklib
How To Uninstall libpam-cracklib on Ubuntu 20.04
To uninstall only the libpam-cracklib
package we can use the following command:
sudo apt-get remove libpam-cracklib
Uninstall libpam-cracklib And Its Dependencies
To uninstall libpam-cracklib
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libpam-cracklib
Remove libpam-cracklib Configurations and Data
To remove libpam-cracklib
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libpam-cracklib
Remove libpam-cracklib configuration, data, and all of its dependencies
We can use the following command to remove libpam-cracklib
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpam-cracklib
References
Summary
In this tutorial we learn how to install libpam-cracklib
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.