How To Install libparse-fixedlength-perl on Ubuntu 18.04

In this tutorial we learn how to install libparse-fixedlength-perl on Ubuntu 18.04. libparse-fixedlength-perl is Perl module to parse a string containing fixed length fields

Introduction

In this tutorial we learn how to install libparse-fixedlength-perl on Ubuntu 18.04.

What is libparse-fixedlength-perl

libparse-fixedlength-perl is:

The Parse::FixedLength module facilitates the process of breaking a string into its fixed-length components. Sure, it’s a glorified (and in some ways more limited) substitute for the perl functions pack and unpack, but this module helps in the maintainability of working with fixed length formats as the number of fields in a format grows.

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

sudo apt-get -y install libparse-fixedlength-perl

Install libparse-fixedlength-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libparse-fixedlength-perl

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

sudo aptitude -y install libparse-fixedlength-perl

How To Uninstall libparse-fixedlength-perl on Ubuntu 18.04

To uninstall only the libparse-fixedlength-perl package we can use the following command:

sudo apt-get remove libparse-fixedlength-perl

Uninstall libparse-fixedlength-perl And Its Dependencies

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

sudo apt-get -y autoremove libparse-fixedlength-perl

Remove libparse-fixedlength-perl Configurations and Data

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

sudo apt-get -y purge libparse-fixedlength-perl

Remove libparse-fixedlength-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libparse-fixedlength-perl

References

Summary

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