How To Install libbarcode-datamatrix-perl on Ubuntu 18.04

In this tutorial we learn how to install libbarcode-datamatrix-perl on Ubuntu 18.04. libbarcode-datamatrix-perl is generator for Data Matrix barcodes

Introduction

In this tutorial we learn how to install libbarcode-datamatrix-perl on Ubuntu 18.04.

What is libbarcode-datamatrix-perl

libbarcode-datamatrix-perl is:

Barcode::DataMatrix generates data for Data Matrix barcodes. It is primarily useful as a data source for barcode modules that do rendering, such as HTML::Barcode::DataMatrix or Barcode::DataMatrix::PNG

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

sudo apt-get -y install libbarcode-datamatrix-perl

Install libbarcode-datamatrix-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libbarcode-datamatrix-perl

Install libbarcode-datamatrix-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 libbarcode-datamatrix-perl using aptitude by running the following command:

sudo aptitude -y install libbarcode-datamatrix-perl

How To Uninstall libbarcode-datamatrix-perl on Ubuntu 18.04

To uninstall only the libbarcode-datamatrix-perl package we can use the following command:

sudo apt-get remove libbarcode-datamatrix-perl

Uninstall libbarcode-datamatrix-perl And Its Dependencies

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

sudo apt-get -y autoremove libbarcode-datamatrix-perl

Remove libbarcode-datamatrix-perl Configurations and Data

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

sudo apt-get -y purge libbarcode-datamatrix-perl

Remove libbarcode-datamatrix-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libbarcode-datamatrix-perl

References

Summary

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