How To Install libapparmor-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libapparmor-perl on Ubuntu 20.04.
What is libapparmor-perl
libapparmor-perl is:
libapparmor-perl provides the Perl module that contains the language bindings for the AppArmor library, libapparmor, which were autogenerated via SWIG.
Package: libapparmor-perl Architecture: amd64 Version: 2.13.3-7ubuntu5 Multi-Arch: same Priority: optional Section: perl 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: 241 Depends: perl-base (>= 5.30.0-9build1), perlapi-5.30.0, libapparmor1 (>= 2.10.95), libc6 (>= 2.14) Filename: pool/main/a/apparmor/libapparmor-perl_2.13.3-7ubuntu5_amd64.deb Size: 32568 MD5sum: 95a0c6b6f519eff57798965957dd217d SHA1: 8572088986ad1eeebc6f211d0befec0c756e87f8 SHA256: 4aba2fde11f163aaa851ba41e465bdd20a936164e23e2254cbce5ab54f0edc4b Homepage: http://apparmor.net/ Description-en: AppArmor library Perl bindings libapparmor-perl provides the Perl module that contains the language bindings for the AppArmor library, libapparmor, which were autogenerated via SWIG.
There are three methods to install libapparmor-perl 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 libapparmor-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install libapparmor-perl using apt-get by running the following command:
sudo apt-get -y install libapparmor-perl
Install libapparmor-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libapparmor-perl using apt by running the following command:
sudo apt -y install libapparmor-perl
Install libapparmor-perl 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 libapparmor-perl using aptitude by running the following command:
sudo aptitude -y install libapparmor-perl
How To Uninstall libapparmor-perl on Ubuntu 20.04
To uninstall only the libapparmor-perl package we can use the following command:
sudo apt-get remove libapparmor-perl
Uninstall libapparmor-perl And Its Dependencies
To uninstall libapparmor-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libapparmor-perl
Remove libapparmor-perl Configurations and Data
To remove libapparmor-perl configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libapparmor-perl
Remove libapparmor-perl configuration, data, and all of its dependencies
We can use the following command to remove libapparmor-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libapparmor-perl
References
Summary
In this tutorial we learn how to install libapparmor-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.