How To Install libfilter-template-perl on Ubuntu 18.04

In this tutorial we learn how to install libfilter-template-perl on Ubuntu 18.04. libfilter-template-perl is source filter for inline code templates (macros)

Introduction

In this tutorial we learn how to install libfilter-template-perl on Ubuntu 18.04.

What is libfilter-template-perl

libfilter-template-perl is:

Filter::Template is a source filter for Perl that provides a mechanism for defining inline source code templates. Templates can be much faster than subroutines, but can cause debugging to become significantly more difficult. Read the documentation to understand the limitations and choose wisely.

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

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

Install libfilter-template-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfilter-template-perl

Install libfilter-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libfilter-template-perl

How To Uninstall libfilter-template-perl on Ubuntu 18.04

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

sudo apt-get remove libfilter-template-perl

Uninstall libfilter-template-perl And Its Dependencies

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

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

Remove libfilter-template-perl Configurations and Data

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

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

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

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

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

References

Summary

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