How To Install libhtml-template-perl on Debian 11

In this tutorial we learn how to install libhtml-template-perl on Debian 11. libhtml-template-perl is module for using HTML templates with Perl

Introduction

In this tutorial we learn how to install libhtml-template-perl on Debian 11.

What is libhtml-template-perl

libhtml-template-perl is:

HTML::Template attempts to make using HTML templates simple and natural. It extends standard HTML with the pseudo tags <TMPL_VAR>, <TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. These are used to implement some basic logic - variable substitution, loops, conditional branches - inside the HTML template, while leaving the more complex computations to separate Perl code. This keeps the template accessible for designers and other non-Perl people, without limiting the programmer.

HTML::Template optionally stores its cache in shared memory using the IPC::SharedCache module. Please install libipc-sharedcache-perl and pass the shared_cache option to HTML::Template if you want to make use of this.

There are three methods to install libhtml-template-perl on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libhtml-template-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 libhtml-template-perl using apt-get by running the following command:

sudo apt-get -y install libhtml-template-perl

Install libhtml-template-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libhtml-template-perl using apt by running the following command:

sudo apt -y install libhtml-template-perl

Install libhtml-template-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 libhtml-template-perl using aptitude by running the following command:

sudo aptitude -y install libhtml-template-perl

How To Uninstall libhtml-template-perl on Debian 11

To uninstall only the libhtml-template-perl package we can use the following command:

sudo apt-get remove libhtml-template-perl

Uninstall libhtml-template-perl And Its Dependencies

To uninstall libhtml-template-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libhtml-template-perl

Remove libhtml-template-perl Configurations and Data

To remove libhtml-template-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libhtml-template-perl

Remove libhtml-template-perl configuration, data, and all of its dependencies

We can use the following command to remove libhtml-template-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libhtml-template-perl

Dependencies

libhtml-template-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libhtml-template-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.