How To Install libcam-pdf-perl on Debian 11

In this tutorial we learn how to install libcam-pdf-perl on Debian 11. libcam-pdf-perl is PDF manipulation library

Introduction

In this tutorial we learn how to install libcam-pdf-perl on Debian 11.

What is libcam-pdf-perl

libcam-pdf-perl is:

CAM::PDF reads and writes any document that conforms to the PDF specification generously provided by Adobe at https://www.adobe.com/devnet/pdf/pdf_reference.html (link last checked Feb 2013).

The file format through PDF 1.5 is well-supported, with the exception of the “linearized” or “optimized” output format, which this module can read but not write. Many specific aspects of the document model are not manipulable with this package (like fonts), but if the input document is correctly written, then this module will preserve the model integrity.

The PDF writing feature saves as PDF 1.4-compatible. That means that compressed object streams cannot be written. The consequence is that reading and then writing a PDF 1.5+ document may enlarge the resulting file by a fair margin.

There are three methods to install libcam-pdf-perl on Debian 11. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcam-pdf-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 libcam-pdf-perl using apt-get by running the following command:

sudo apt-get -y install libcam-pdf-perl

Install libcam-pdf-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcam-pdf-perl

Install libcam-pdf-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install libcam-pdf-perl using aptitude by running the following command:

sudo aptitude -y install libcam-pdf-perl

How To Uninstall libcam-pdf-perl on Debian 11

To uninstall only the libcam-pdf-perl package we can use the following command:

sudo apt-get remove libcam-pdf-perl

Uninstall libcam-pdf-perl And Its Dependencies

To uninstall libcam-pdf-perl and its dependencies that are no longer needed by Debian 11, we can use the command below:

sudo apt-get -y autoremove libcam-pdf-perl

Remove libcam-pdf-perl Configurations and Data

To remove libcam-pdf-perl configuration and data from Debian 11 we can use the following command:

sudo apt-get -y purge libcam-pdf-perl

Remove libcam-pdf-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcam-pdf-perl

Dependencies

libcam-pdf-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libcam-pdf-perl package on Debian 11 using different package management tools: apt, apt-get and aptitude.