How To Install libpam-dbus on Debian 9

In this tutorial we learn how to install libpam-dbus on Debian 9. libpam-dbus is A PAM module which asks the logged in user for confirmation

Introduction

In this tutorial we learn how to install libpam-dbus on Debian 9.

What is libpam-dbus

libpam-dbus is:

This simple pam module will, when being used to authenticate a (typically remote) user, use D-Bus to ask any currently logged in (typically local) user if that is ok.

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

sudo apt-get -y install libpam-dbus

Install libpam-dbus Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpam-dbus

Install libpam-dbus 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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libpam-dbus

How To Uninstall libpam-dbus on Debian 9

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

sudo apt-get remove libpam-dbus

Uninstall libpam-dbus And Its Dependencies

To uninstall libpam-dbus and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libpam-dbus

Remove libpam-dbus Configurations and Data

To remove libpam-dbus configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libpam-dbus

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

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

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

Dependencies

libpam-dbus have the following dependencies:

References

Summary

In this tutorial we learn how to install libpam-dbus package on Debian 9 using different package management tools: apt, apt-get and aptitude.