How To Install libbarcode-code128-perl on Ubuntu 18.04

In this tutorial we learn how to install libbarcode-code128-perl on Ubuntu 18.04. libbarcode-code128-perl is Perl library to generate CODE 128 bar codes

Introduction

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

What is libbarcode-code128-perl

libbarcode-code128-perl is:

Barcode::Code128 generates bar codes using the CODE 128 symbology. It can generate images in PNG or GIF format using the GD package, or it can generate a text string representing the barcode that you can render using some other technology if desired.

The intended use of this module is to create a web page with a bar code on it, which can then be printed out and faxed or mailed to someone who will scan the bar code. The application which spurred its creation was an expense report tool, where the employee submitting the report would print out the web page and staple the receipts to it, and the Accounts Payable clerk would scan the bar code to indicate that the receipts were received.

The default settings for this module produce a large image that can safely be FAXed several times and still scanned easily. If this requirement is not important you can generate smaller image using optional parameters, described below.

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

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

Install libbarcode-code128-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libbarcode-code128-perl

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

sudo aptitude -y install libbarcode-code128-perl

How To Uninstall libbarcode-code128-perl on Ubuntu 18.04

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

sudo apt-get remove libbarcode-code128-perl

Uninstall libbarcode-code128-perl And Its Dependencies

To uninstall libbarcode-code128-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-code128-perl

Remove libbarcode-code128-perl Configurations and Data

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

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

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

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

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

References

Summary

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