How To Install libpdf-api2-perl on Kali Linux
Introduction
In this tutorial we learn how to install libpdf-api2-perl
on Kali Linux.
What is libpdf-api2-perl
libpdf-api2-perl is:
PDF::API2 started as a nice API around the Text::PDF modules created by Martin Hosken.
Features:
- Works with more than one PDF file open at once
- It presents a object-oriented API to the user
- Supports the 14 base PDF Core Fonts
- Supports TrueType/OpenType fonts with both TT and CFF Outlines
- Supports Adobe-Type1 Fonts (pfb/pfa/afm)
- Supports native Embedding of bitmap images (jpeg, ppm, png)
- Supports modification of existing pdfs and import/cloning of pages
- Lite version of the API for first-timers
There are three methods to install libpdf-api2-perl
on Kali Linux. 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-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-perl
using apt-get
by running the following command:
sudo apt-get -y install libpdf-api2-perl
Install libpdf-api2-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libpdf-api2-perl
using apt
by running the following command:
sudo apt -y install libpdf-api2-perl
Install libpdf-api2-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libpdf-api2-perl
using aptitude
by running the following command:
sudo aptitude -y install libpdf-api2-perl
How To Uninstall libpdf-api2-perl on Kali Linux
To uninstall only the libpdf-api2-perl
package we can use the following command:
sudo apt-get remove libpdf-api2-perl
Uninstall libpdf-api2-perl And Its Dependencies
To uninstall libpdf-api2-perl
and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libpdf-api2-perl
Remove libpdf-api2-perl Configurations and Data
To remove libpdf-api2-perl
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libpdf-api2-perl
Remove libpdf-api2-perl configuration, data, and all of its dependencies
We can use the following command to remove libpdf-api2-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libpdf-api2-perl
Dependencies
libpdf-api2-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libpdf-api2-perl
package on Kali Linux using different package management tools: apt
, apt-get
and aptitude
.