How To Install libmason-plugin-htmlfilters-perl on Ubuntu 18.04

In this tutorial we learn how to install libmason-plugin-htmlfilters-perl on Ubuntu 18.04. libmason-plugin-htmlfilters-perl is HTML generation filter plugin for Mason

Introduction

In this tutorial we learn how to install libmason-plugin-htmlfilters-perl on Ubuntu 18.04.

What is libmason-plugin-htmlfilters-perl

libmason-plugin-htmlfilters-perl is:

Mason::Plugin::HTMLFilters provides handy filters for the HTML generated by the Mason web templating framework.

Currently, filter functions include basic and comprehensive HTML escaping, URI escaping and paragraph formatting.

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

sudo apt-get -y install libmason-plugin-htmlfilters-perl

Install libmason-plugin-htmlfilters-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmason-plugin-htmlfilters-perl

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

sudo aptitude -y install libmason-plugin-htmlfilters-perl

How To Uninstall libmason-plugin-htmlfilters-perl on Ubuntu 18.04

To uninstall only the libmason-plugin-htmlfilters-perl package we can use the following command:

sudo apt-get remove libmason-plugin-htmlfilters-perl

Uninstall libmason-plugin-htmlfilters-perl And Its Dependencies

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

sudo apt-get -y autoremove libmason-plugin-htmlfilters-perl

Remove libmason-plugin-htmlfilters-perl Configurations and Data

To remove libmason-plugin-htmlfilters-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libmason-plugin-htmlfilters-perl

Remove libmason-plugin-htmlfilters-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmason-plugin-htmlfilters-perl

References

Summary

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