How To Install libgd-barcode-perl on Ubuntu 18.04

In this tutorial we learn how to install libgd-barcode-perl on Ubuntu 18.04. libgd-barcode-perl is Perl module to create barcode images

Introduction

In this tutorial we learn how to install libgd-barcode-perl on Ubuntu 18.04.

What is libgd-barcode-perl

libgd-barcode-perl is:

GD::Barcode creates barcode images. It supports the following barcode formats: COOP2of5, Code39, EAN13 (JAN13), EAN8 (JAN8), IATA2of5, ITF (Interleaved2of5), Industrial2of5, Matrix2of5, NW7, QRcode, UPC-A and UPC-E.

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

sudo apt-get -y install libgd-barcode-perl

Install libgd-barcode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libgd-barcode-perl

Install libgd-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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libgd-barcode-perl

How To Uninstall libgd-barcode-perl on Ubuntu 18.04

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

sudo apt-get remove libgd-barcode-perl

Uninstall libgd-barcode-perl And Its Dependencies

To uninstall libgd-barcode-perl and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove libgd-barcode-perl

Remove libgd-barcode-perl Configurations and Data

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

sudo apt-get -y purge libgd-barcode-perl

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

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

sudo apt-get -y autoremove --purge libgd-barcode-perl

References

Summary

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