How To Install python3-apparmor on Ubuntu 20.04

In this tutorial we learn how to install python3-apparmor on Ubuntu 20.04. python3-apparmor is AppArmor Python3 utility library AppArmor Python3 utility library

Introduction

In this tutorial we learn how to install python3-apparmor on Ubuntu 20.04.

What is python3-apparmor

python3-apparmor is:

python3-apparmor provides the Python3 modules that implement the higher-level AppArmor applications.

Package: python3-apparmor Architecture: amd64 Version: 2.13.3-7ubuntu5 Priority: extra Section: python 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: 522 Depends: python3-libapparmor (>= 2.13.3), python3:any Filename: pool/main/a/apparmor/python3-apparmor_2.13.3-7ubuntu5_amd64.deb Size: 78640 MD5sum: f445b5e60d9f6adc2df7cfc9d45b0268 SHA1: f3d3acd5bd5239fe9241ddc1f406bd5e50302903 SHA256: fc75f052210cf6743a57d03141f4c42a81c2463d0b1a2fd9ab91daf7802deb67 Homepage: http://apparmor.net/ Description-en: AppArmor Python3 utility library python3-apparmor provides the Python3 modules that implement the higher-level AppArmor applications.

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

sudo apt-get -y install python3-apparmor

Install python3-apparmor Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-apparmor

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

sudo aptitude -y install python3-apparmor

How To Uninstall python3-apparmor on Ubuntu 20.04

To uninstall only the python3-apparmor package we can use the following command:

sudo apt-get remove python3-apparmor

Uninstall python3-apparmor And Its Dependencies

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

sudo apt-get -y autoremove python3-apparmor

Remove python3-apparmor Configurations and Data

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

sudo apt-get -y purge python3-apparmor

Remove python3-apparmor configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge python3-apparmor

References

Summary

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