How To Install libtemplate-perl on Debian 11

In this tutorial we learn how to install libtemplate-perl on Debian 11. libtemplate-perl is Template Toolkit template processing system in Perl

Introduction

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

What is libtemplate-perl

libtemplate-perl is:

The Template Toolkit is a fast, powerful, flexible, and easily extensible template processing system written in Perl. It is ideally suited for (but not limited) to the creation of static and dynamic web content. It includes support for all standard templating directives and many additional features including output filtering, exception handling, macro definition, support for plugin objects, definition of template metadata, embedded Perl code, and much more.

This package contains the ’tpage’ and ’ttree’ executables which serve as simple, powerful tools in the creation of static content without any prerequisite knowledge of Perl. It also contains an extensive set of Perl modules ideally suited to act as a templating system in the dynamic creation of web content.

Excellent offline batch processing makes it ideal for generating non-web-based content including POD, LaTeX, PostScript, and plain text from source templates.

This package also includes Doug Steinwand’s high-speed drop-in replacement for Template::Stash written in Perl XS.

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

sudo apt-get -y install libtemplate-perl

Install libtemplate-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtemplate-perl

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

sudo aptitude -y install libtemplate-perl

How To Uninstall libtemplate-perl on Debian 11

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

sudo apt-get remove libtemplate-perl

Uninstall libtemplate-perl And Its Dependencies

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

sudo apt-get -y autoremove libtemplate-perl

Remove libtemplate-perl Configurations and Data

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

sudo apt-get -y purge libtemplate-perl

Remove libtemplate-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libtemplate-perl

Dependencies

libtemplate-perl have the following dependencies:

References

Summary

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