How To Install libpdf-reuse-barcode-perl on Debian 9

In this tutorial we learn how to install libpdf-reuse-barcode-perl on Debian 9. libpdf-reuse-barcode-perl is Create barcodes for PDF documents with PDF

Introduction

In this tutorial we learn how to install libpdf-reuse-barcode-perl on Debian 9.

What is libpdf-reuse-barcode-perl

libpdf-reuse-barcode-perl is:

This is a sub-module to PDF::Reuse. It creates barcode “images” to be used in PDF documents. It uses GD::Barcode and its sub-modules: GD::Barcode::Code39, COOP2of5, EAN13 and so on, to calculate the barcode pattern. For Code128 it uses Barcode::Code128.

Normally the barcodes are displayed on a white background and with the characters under the bars. You can rotate the “image”, make it smaller or bigger, prolong the bars and change the background. (But then, don’t forget to test that your barcode scanner still understands it.)

If you don’t change the size of the “image”, the bars are approximately 24 pixels high (the guard bars a few pixels longer) and the box/background is 38 pixels high and something like 20 pixels wider than the barcodes. The text under the bars are 10 pixels high.

There are three methods to install libpdf-reuse-barcode-perl on Debian 9. 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-reuse-barcode-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-reuse-barcode-perl using apt-get by running the following command:

sudo apt-get -y install libpdf-reuse-barcode-perl

Install libpdf-reuse-barcode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libpdf-reuse-barcode-perl

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

sudo aptitude -y install libpdf-reuse-barcode-perl

How To Uninstall libpdf-reuse-barcode-perl on Debian 9

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

sudo apt-get remove libpdf-reuse-barcode-perl

Uninstall libpdf-reuse-barcode-perl And Its Dependencies

To uninstall libpdf-reuse-barcode-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libpdf-reuse-barcode-perl

Remove libpdf-reuse-barcode-perl Configurations and Data

To remove libpdf-reuse-barcode-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libpdf-reuse-barcode-perl

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

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

sudo apt-get -y autoremove --purge libpdf-reuse-barcode-perl

Dependencies

libpdf-reuse-barcode-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libpdf-reuse-barcode-perl package on Debian 9 using different package management tools: apt, apt-get and aptitude.