How To Install libmason-perl on Debian 9
Introduction
In this tutorial we learn how to install libmason-perl on Debian 9.
What is libmason-perl
libmason-perl is:
Mason is a powerful Perl-based templating system, designed to generate dynamic content of all kinds.
Unlike many templating systems, Mason does not attempt to invent an alternate, “easier” syntax for templates. It provides a set of syntax and features specific to template creation, but underneath it is still clearly and proudly recognizable as Perl.
Mason is most often used for generating web pages. It can handle web requests directly via PSGI, or act as the view layer for a web framework such as Catalyst or Dancer.
All documentation is indexed at Mason::Manual.
The previous major version of Mason (1.x) is available under the name HTML::Mason (package libhtml-mason-perl).
There are three methods to install libmason-perl 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 libmason-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 libmason-perl using apt-get by running the following command:
sudo apt-get -y install libmason-perl
Install libmason-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libmason-perl using apt by running the following command:
sudo apt -y install libmason-perl
Install libmason-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 Debian. Update apt database with aptitude using the following command.
sudo aptitude update
After updating apt database, We can install libmason-perl using aptitude by running the following command:
sudo aptitude -y install libmason-perl
How To Uninstall libmason-perl on Debian 9
To uninstall only the libmason-perl package we can use the following command:
sudo apt-get remove libmason-perl
Uninstall libmason-perl And Its Dependencies
To uninstall libmason-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libmason-perl
Remove libmason-perl Configurations and Data
To remove libmason-perl configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libmason-perl
Remove libmason-perl configuration, data, and all of its dependencies
We can use the following command to remove libmason-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libmason-perl
Dependencies
libmason-perl have the following dependencies:
- perl
- libcapture-tiny-perl
- libclass-load-perl
- libclass-unload-perl
- libdevel-globaldestruction-perl
- libexception-class-perl
- libguard-perl
- libipc-system-simple-perl
- libjson-perl
- liblog-any-perl
- libmethod-signatures-simple-perl
- libmoose-perl
- libmoosex-hasdefaults-perl
- libmoosex-strictconstructor-perl
- libtry-tiny-perl
- libtest-class-most-perl
- libtest-longstring-perl
References
Summary
In this tutorial we learn how to install libmason-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.