How To Install libhtml-template-perl on Kali Linux

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

Introduction

In this tutorial we learn how to install libhtml-template-perl on Kali Linux.

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 Kali Linux. 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 on Kali Linux first since aptitude is usually not installed by default on Kali Linux. 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 Kali Linux

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 Kali Linux, 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 Kali Linux 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 Kali Linux using different package management tools: apt, apt-get and aptitude.