How To Install dh-apparmor on Ubuntu 20.04
Introduction
In this tutorial we learn how to install dh-apparmor
on Ubuntu 20.04.
What is dh-apparmor
dh-apparmor is:
dh-apparmor provides the debhelper tools used to install and migrate AppArmor profiles. This is normally used from package maintainer scripts during install and removal.
Package: dh-apparmor Architecture: all Version: 2.13.3-7ubuntu5 Multi-Arch: foreign Priority: extra Section: universe/devel 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: 93 Suggests: apparmor-easyprof Filename: pool/universe/a/apparmor/dh-apparmor_2.13.3-7ubuntu5_all.deb Size: 10144 MD5sum: 0a86f18df91d9cf152ea37c91cb90235 SHA1: a6dbeb6e28c105ffa57de23c1c3aee6b2ed4114a SHA256: 3b43a61c4f137fed6384ed19602aa6a2e504d005e9254a7e0e33a9dd2ecc7e69 Homepage: http://apparmor.net/ Description-en: AppArmor debhelper routines dh-apparmor provides the debhelper tools used to install and migrate AppArmor profiles. This is normally used from package maintainer scripts during install and removal.
There are three methods to install dh-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 dh-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 dh-apparmor
using apt-get
by running the following command:
sudo apt-get -y install dh-apparmor
Install dh-apparmor Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install dh-apparmor
using apt
by running the following command:
sudo apt -y install dh-apparmor
Install dh-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 dh-apparmor
using aptitude
by running the following command:
sudo aptitude -y install dh-apparmor
How To Uninstall dh-apparmor on Ubuntu 20.04
To uninstall only the dh-apparmor
package we can use the following command:
sudo apt-get remove dh-apparmor
Uninstall dh-apparmor And Its Dependencies
To uninstall dh-apparmor
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove dh-apparmor
Remove dh-apparmor Configurations and Data
To remove dh-apparmor
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge dh-apparmor
Remove dh-apparmor configuration, data, and all of its dependencies
We can use the following command to remove dh-apparmor
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge dh-apparmor
References
Summary
In this tutorial we learn how to install dh-apparmor
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.