How To Install libpam-apparmor on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libpam-apparmor
on Ubuntu 20.04.
What is libpam-apparmor
libpam-apparmor is:
libpam-apparmor provides the PAM module needed to declare various differing confinement policies when starting PAM sessions by using the changehat abilities exposed through libapparmor.
Package: libpam-apparmor Architecture: amd64 Version: 2.13.3-7ubuntu5 Priority: extra Section: libs Source: apparmor Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian AppArmor Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 100 Depends: libapparmor1 (>= 2.6~devel), libc6 (>= 2.4), libpam0g (>= 0.99.7.1) Filename: pool/main/a/apparmor/libpam-apparmor_2.13.3-7ubuntu5_amd64.deb Size: 7400 MD5sum: c0eeaab785cce018bb85c230285befdf SHA1: 19741362ad5630202c5edecd0403f71bada80cb4 SHA256: 65158cbf94359b5e1fc34cf80f6ef0e21e5c41075ec3aa033d0e5c560d455a4e Homepage: http://apparmor.net/ Description-en: changehat AppArmor library as a PAM module libpam-apparmor provides the PAM module needed to declare various differing confinement policies when starting PAM sessions by using the changehat abilities exposed through libapparmor.
There are three methods to install libpam-apparmor
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-apparmor 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-apparmor
using apt-get
by running the following command:
sudo apt-get -y install libpam-apparmor
Install libpam-apparmor Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpam-apparmor
using apt
by running the following command:
sudo apt -y install libpam-apparmor
Install libpam-apparmor 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-apparmor
using aptitude
by running the following command:
sudo aptitude -y install libpam-apparmor
How To Uninstall libpam-apparmor on Ubuntu 20.04
To uninstall only the libpam-apparmor
package we can use the following command:
sudo apt-get remove libpam-apparmor
Uninstall libpam-apparmor And Its Dependencies
To uninstall libpam-apparmor
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libpam-apparmor
Remove libpam-apparmor Configurations and Data
To remove libpam-apparmor
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libpam-apparmor
Remove libpam-apparmor configuration, data, and all of its dependencies
We can use the following command to remove libpam-apparmor
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpam-apparmor
References
Summary
In this tutorial we learn how to install libpam-apparmor
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.