How To Install libhtml-table-perl on Ubuntu 18.04

In this tutorial we learn how to install libhtml-table-perl on Ubuntu 18.04. libhtml-table-perl is Perl module for creating HTML tables

Introduction

In this tutorial we learn how to install libhtml-table-perl on Ubuntu 18.04.

What is libhtml-table-perl

libhtml-table-perl is:

HTML::Table is used to generate HTML tables for CGI scripts. By using the methods provided fairly complex tables can be created, manipulated, then printed from Perl scripts. The module also greatly simplifies creating tables within tables from Perl. It is possible to create an entire table using the methods provided and never use an HTML tag.

HTML::Table also allows for creating dynamically sized tables via its addRow and addCol methods. These methods automatically resize the table if passed more cell values than will fit in the current table grid.

Methods are provided for nearly all valid table, row, and cell tags specified for HTML 3.0.

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

sudo apt-get -y install libhtml-table-perl

Install libhtml-table-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhtml-table-perl

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

sudo aptitude -y install libhtml-table-perl

How To Uninstall libhtml-table-perl on Ubuntu 18.04

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

sudo apt-get remove libhtml-table-perl

Uninstall libhtml-table-perl And Its Dependencies

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

sudo apt-get -y autoremove libhtml-table-perl

Remove libhtml-table-perl Configurations and Data

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

sudo apt-get -y purge libhtml-table-perl

Remove libhtml-table-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libhtml-table-perl

References

Summary

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