How To Install libpam-modules on Ubuntu 20.04

In this tutorial we learn how to install libpam-modules on Ubuntu 20.04. libpam-modules is Pluggable Authentication Modules for PAM Pluggable Authentication Modules for PAM Pluggable Authentication Modules for PAM

Introduction

In this tutorial we learn how to install libpam-modules on Ubuntu 20.04.

What is libpam-modules

libpam-modules is:

This package completes the set of modules for PAM. It includes the pam_unix.so module as well as some specialty modules. Task: minimal

Package: libpam-modules Status: install ok installed Priority: required Section: admin Installed-Size: 1135 Maintainer: Ubuntu Developers [email protected] Architecture: amd64 Multi-Arch: same Source: pam Version: 1.3.1-5ubuntu4.1 Replaces: libpam-umask, libpam0g-util Provides: libpam-mkhomedir, libpam-motd, libpam-umask Pre-Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.27), libcrypt1 (>= 1:4.1.0), libdb5.3, libpam0g (>= 1.3.1), libselinux1 (>= 2.1.9), debconf (>= 0.5) | debconf-2.0, libpam-modules-bin (= 1.3.1-5ubuntu4.1) Recommends: update-motd Conflicts: libpam-mkhomedir, libpam-motd, libpam-umask Conffiles: /etc/security/access.conf dc21d0fd769d655b311d785670e5c6ae /etc/security/group.conf f1e26e8db6f7abd2d697d7dad3422c36 /etc/security/limits.conf 38dce56af34daf316b901d465769a137 /etc/security/namespace.conf 6424c99a62ddf4b7d3ca713bb06ded89 /etc/security/namespace.init d9e6a7c85e966427ef23a04ec6c7000f /etc/security/pam_env.conf ddee4a931170dc21b4e0b9bb28e02a7b /etc/security/sepermit.conf d41c74654734a5c069a37bfc02f0a6d4 /etc/security/time.conf 06e05c6079e839c8833ac7c3abfde192 Description-en: Pluggable Authentication Modules for PAM This package completes the set of modules for PAM. It includes the pam_unix.so module as well as some specialty modules. Homepage: http://www.linux-pam.org/ Original-Maintainer: Steve Langasek [email protected]

Package: libpam-modules Architecture: amd64 Version: 1.3.1-5ubuntu4 Multi-Arch: same Priority: required 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: 1135 Provides: libpam-mkhomedir, libpam-motd, libpam-umask Pre-Depends: libaudit1 (>= 1:2.2.1), libc6 (>= 2.27), libdb5.3, libpam0g (>= 1.3.1), libselinux1 (>= 2.1.9), debconf (>= 0.5) | debconf-2.0, libpam-modules-bin (= 1.3.1-5ubuntu4) Recommends: update-motd Conflicts: libpam-mkhomedir, libpam-motd, libpam-umask Replaces: libpam-umask, libpam0g-util Filename: pool/main/p/pam/libpam-modules_1.3.1-5ubuntu4_amd64.deb Size: 250036 MD5sum: 08fa033713f04f4d3085550ea069fd35 SHA1: 6506e4a828f7f50f0174c57f5be638ffdf7b55c6 SHA256: 7aa19ca36920d7b1d3314a334615fc2bd5ab4ea7fbcff9515d5c810b8ab6b180 Homepage: http://www.linux-pam.org/ Description-en: Pluggable Authentication Modules for PAM This package completes the set of modules for PAM. It includes the pam_unix.so module as well as some specialty modules. Task: minimal

There are three methods to install libpam-modules 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-modules 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-modules using apt-get by running the following command:

sudo apt-get -y install libpam-modules

Install libpam-modules Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libpam-modules using apt by running the following command:

sudo apt -y install libpam-modules

Install libpam-modules 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-modules using aptitude by running the following command:

sudo aptitude -y install libpam-modules

How To Uninstall libpam-modules on Ubuntu 20.04

To uninstall only the libpam-modules package we can use the following command:

sudo apt-get remove libpam-modules

Uninstall libpam-modules And Its Dependencies

To uninstall libpam-modules and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libpam-modules

Remove libpam-modules Configurations and Data

To remove libpam-modules configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libpam-modules

Remove libpam-modules configuration, data, and all of its dependencies

We can use the following command to remove libpam-modules configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libpam-modules

References

Summary

In this tutorial we learn how to install libpam-modules package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.