How To Install libtemplate-alloy-perl on Ubuntu 18.04

In this tutorial we learn how to install libtemplate-alloy-perl on Ubuntu 18.04. libtemplate-alloy-perl is TT2/3, HT, HTE, Tmpl, and Velocity Engine

Introduction

In this tutorial we learn how to install libtemplate-alloy-perl on Ubuntu 18.04.

What is libtemplate-alloy-perl

libtemplate-alloy-perl is:

Template::Alloy represents the mixing of features and capabilities from all of the major mini-language based template systems (support for non-mini-language based systems will happen eventually). With Template::Alloy you can use your favorite template interface and syntax and get features from each of the other major template systems. And Template::Alloy is fast - whether your using mod_perl, cgi, or running from the commandline. There is even Template::Alloy::XS for getting a little more speed when that is necessary.

According to Wikipedia, “an alloy is a homogeneous mixture of two or more elements”.

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

sudo apt-get -y install libtemplate-alloy-perl

Install libtemplate-alloy-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libtemplate-alloy-perl

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

sudo aptitude -y install libtemplate-alloy-perl

How To Uninstall libtemplate-alloy-perl on Ubuntu 18.04

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

sudo apt-get remove libtemplate-alloy-perl

Uninstall libtemplate-alloy-perl And Its Dependencies

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

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

Remove libtemplate-alloy-perl Configurations and Data

To remove libtemplate-alloy-perl configuration and data from Ubuntu 18.04 we can use the following command:

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

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

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

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

References

Summary

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