How To Install libpdf-table-perl on Ubuntu 18.04

In this tutorial we learn how to install libpdf-table-perl on Ubuntu 18.04. libpdf-table-perl is utility class for building table layouts in a PDF

Introduction

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

What is libpdf-table-perl

libpdf-table-perl is:

PDF::Table is a utility for use with the PDF::API2 module from CPAN. It can be used to display text data in a table layout within the PDF. The text data must be in a 2d array (such as returned by a DBI statement handle fetchall_arrayref() call). The PDF::Table will automatically add as many new pages as necessary to display all of the data. Various layout properties, such as font, font size, and cell padding and background color can be specified for each column and/or for even/odd rows. See the METHODS section in the man page.

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

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

Install libpdf-table-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpdf-table-perl

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

sudo aptitude -y install libpdf-table-perl

How To Uninstall libpdf-table-perl on Ubuntu 18.04

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

sudo apt-get remove libpdf-table-perl

Uninstall libpdf-table-perl And Its Dependencies

To uninstall libpdf-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 libpdf-table-perl

Remove libpdf-table-perl Configurations and Data

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

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

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

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

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

References

Summary

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