How To Install libpdf-api2-simple-perl on Ubuntu 18.04

In this tutorial we learn how to install libpdf-api2-simple-perl on Ubuntu 18.04. libpdf-api2-simple-perl is simple interface for manipulating PDF files

Introduction

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

What is libpdf-api2-simple-perl

libpdf-api2-simple-perl is:

PDF::API2::Simple is a Perl module for creating and manipulating files in the Portable Document Format (PDF). It aims to provide a simplified interface for working with these documents, using PDF::API2 (see libpdf-api2-perl) for the heavy lifting.

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

sudo apt-get -y install libpdf-api2-simple-perl

Install libpdf-api2-simple-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpdf-api2-simple-perl

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

sudo aptitude -y install libpdf-api2-simple-perl

How To Uninstall libpdf-api2-simple-perl on Ubuntu 18.04

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

sudo apt-get remove libpdf-api2-simple-perl

Uninstall libpdf-api2-simple-perl And Its Dependencies

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

Remove libpdf-api2-simple-perl Configurations and Data

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

sudo apt-get -y purge libpdf-api2-simple-perl

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

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

sudo apt-get -y autoremove --purge libpdf-api2-simple-perl

References

Summary

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