How To Install libobject-id-perl on Ubuntu 18.04

In this tutorial we learn how to install libobject-id-perl on Ubuntu 18.04. libobject-id-perl is unique identifier for any object

Introduction

In this tutorial we learn how to install libobject-id-perl on Ubuntu 18.04.

What is libobject-id-perl

libobject-id-perl is:

Object::ID is a unique identifier for any object, regardless of its type, structure or contents. Its features are:

  • Works on ANY object of any type
  • Does not modify the object in any way
  • Does not change with the object’s contents
  • Is O(1) to calculate (ie. doesn’t matter how big the object is)
  • The id is unique for the life of the process
  • The id is always a true value

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

sudo apt-get -y install libobject-id-perl

Install libobject-id-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libobject-id-perl

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

sudo aptitude -y install libobject-id-perl

How To Uninstall libobject-id-perl on Ubuntu 18.04

To uninstall only the libobject-id-perl package we can use the following command:

sudo apt-get remove libobject-id-perl

Uninstall libobject-id-perl And Its Dependencies

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

sudo apt-get -y autoremove libobject-id-perl

Remove libobject-id-perl Configurations and Data

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

sudo apt-get -y purge libobject-id-perl

Remove libobject-id-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libobject-id-perl

References

Summary

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