How To Install libuuid-tiny-perl on Ubuntu 18.04

In this tutorial we learn how to install libuuid-tiny-perl on Ubuntu 18.04. libuuid-tiny-perl is pure Perl module to generate v1, v3, v4, and v5 UUIDs

Introduction

In this tutorial we learn how to install libuuid-tiny-perl on Ubuntu 18.04.

What is libuuid-tiny-perl

libuuid-tiny-perl is:

UUID::Tiny provides a simple, non-object-oriented interface for generating UUIDs from Perl code. It is not suitable for performance-sensitive UUID generation or for applications that require v1 UUIDs generated from a real MAC address (this module generates random MAC addresses), but otherwise provides a simpler Perl interface for UUID generation than alternatives.

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

sudo apt-get -y install libuuid-tiny-perl

Install libuuid-tiny-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libuuid-tiny-perl

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

sudo aptitude -y install libuuid-tiny-perl

How To Uninstall libuuid-tiny-perl on Ubuntu 18.04

To uninstall only the libuuid-tiny-perl package we can use the following command:

sudo apt-get remove libuuid-tiny-perl

Uninstall libuuid-tiny-perl And Its Dependencies

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

sudo apt-get -y autoremove libuuid-tiny-perl

Remove libuuid-tiny-perl Configurations and Data

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

sudo apt-get -y purge libuuid-tiny-perl

Remove libuuid-tiny-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libuuid-tiny-perl

References

Summary

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