How To Install libhtml-template-pro-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libhtml-template-pro-perl
on Ubuntu 22.04.
What is libhtml-template-pro-perl
libhtml-template-pro-perl is:
HTML::Template::Pro attempts to make using HTML templates simple and natural. It extends standard HTML with a few new HTML-esque tags that provide control structures, such as allowing for simple variable manipulation, looping, file inclusion and conditionals (if, else, unless). HTML::Template::Pro is intended to be a drop-in replacement for HTML::Template (and some of its extensions) but written in C below the Perl Interface and so faster.
The file written with HTML and these new tags is called a template, which is usually saved separately from your script. Using this module, you fill in the values for the variables declared in the template, allowing you to separate the web site design from the data you generate inside your Perl script.
There are three methods to install libhtml-template-pro-perl
on Ubuntu 22.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 libhtml-template-pro-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-pro-perl
using apt-get
by running the following command:
sudo apt-get -y install libhtml-template-pro-perl
Install libhtml-template-pro-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libhtml-template-pro-perl
using apt
by running the following command:
sudo apt -y install libhtml-template-pro-perl
Install libhtml-template-pro-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 libhtml-template-pro-perl
using aptitude
by running the following command:
sudo aptitude -y install libhtml-template-pro-perl
How To Uninstall libhtml-template-pro-perl on Ubuntu 22.04
To uninstall only the libhtml-template-pro-perl
package we can use the following command:
sudo apt-get remove libhtml-template-pro-perl
Uninstall libhtml-template-pro-perl And Its Dependencies
To uninstall libhtml-template-pro-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libhtml-template-pro-perl
Remove libhtml-template-pro-perl Configurations and Data
To remove libhtml-template-pro-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libhtml-template-pro-perl
Remove libhtml-template-pro-perl configuration, data, and all of its dependencies
We can use the following command to remove libhtml-template-pro-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhtml-template-pro-perl
References
Summary
In this tutorial we learn how to install libhtml-template-pro-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.