How To Install libfile-bom-perl on Ubuntu 18.04

In this tutorial we learn how to install libfile-bom-perl on Ubuntu 18.04. libfile-bom-perl is Perl module for handling Byte Order Marks

Introduction

In this tutorial we learn how to install libfile-bom-perl on Ubuntu 18.04.

What is libfile-bom-perl

libfile-bom-perl is:

File::BOM provides functions for handling Unicode Byte Order Marks, which are sometimes found at the beginning of some files and streams. It allows programs to automatically determine the original byte ordering a file was written with; in other words, whether the program was written in little-endian or big-endian byte order.

This module provides a simple way to open a file, determine its byte ordering and return the appropriate encoding style. Byte Order Marks are usually found at the beginning of a file, but in the case of a stream where this is not the case, this module also provides a utility to scan any filehandle for it.

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

sudo apt-get -y install libfile-bom-perl

Install libfile-bom-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfile-bom-perl

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

sudo aptitude -y install libfile-bom-perl

How To Uninstall libfile-bom-perl on Ubuntu 18.04

To uninstall only the libfile-bom-perl package we can use the following command:

sudo apt-get remove libfile-bom-perl

Uninstall libfile-bom-perl And Its Dependencies

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

sudo apt-get -y autoremove libfile-bom-perl

Remove libfile-bom-perl Configurations and Data

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

sudo apt-get -y purge libfile-bom-perl

Remove libfile-bom-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libfile-bom-perl

References

Summary

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