How To Install libpam-cgm on Debian 9
Introduction
In this tutorial we learn how to install libpam-cgm
on Debian 9.
What is libpam-cgm
libpam-cgm is:
cgmanager provides a central cgroup manager daemon and a per-namespace manager proxy, allowing users and programs to administrate cgroups through D-Bus requests.
This provides a Pluggable Authentication Module (PAM) to provide logged-in users with a set of cgroups which they can administer. This allows for instance unprivileged containers.
There are three methods to install libpam-cgm
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-cgm 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-cgm
using apt-get
by running the following command:
sudo apt-get -y install libpam-cgm
Install libpam-cgm Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpam-cgm
using apt
by running the following command:
sudo apt -y install libpam-cgm
Install libpam-cgm 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-cgm
using aptitude
by running the following command:
sudo aptitude -y install libpam-cgm
How To Uninstall libpam-cgm on Debian 9
To uninstall only the libpam-cgm
package we can use the following command:
sudo apt-get remove libpam-cgm
Uninstall libpam-cgm And Its Dependencies
To uninstall libpam-cgm
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libpam-cgm
Remove libpam-cgm Configurations and Data
To remove libpam-cgm
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libpam-cgm
Remove libpam-cgm configuration, data, and all of its dependencies
We can use the following command to remove libpam-cgm
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpam-cgm
Dependencies
libpam-cgm have the following dependencies:
References
Summary
In this tutorial we learn how to install libpam-cgm
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.