How To Install libuniversal-ref-perl on Ubuntu 18.04

In this tutorial we learn how to install libuniversal-ref-perl on Ubuntu 18.04. libuniversal-ref-perl is turns ref() into a multimethod

Introduction

In this tutorial we learn how to install libuniversal-ref-perl on Ubuntu 18.04.

What is libuniversal-ref-perl

libuniversal-ref-perl is:

UNIVERSAL::ref changes the behavior of the builtin function ref(). If ref() is called on an object that has requested an overloaded ref, the object’s ->ref method will be called and its return value used instead.

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

sudo apt-get -y install libuniversal-ref-perl

Install libuniversal-ref-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libuniversal-ref-perl

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

sudo aptitude -y install libuniversal-ref-perl

How To Uninstall libuniversal-ref-perl on Ubuntu 18.04

To uninstall only the libuniversal-ref-perl package we can use the following command:

sudo apt-get remove libuniversal-ref-perl

Uninstall libuniversal-ref-perl And Its Dependencies

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

sudo apt-get -y autoremove libuniversal-ref-perl

Remove libuniversal-ref-perl Configurations and Data

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

sudo apt-get -y purge libuniversal-ref-perl

Remove libuniversal-ref-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libuniversal-ref-perl

References

Summary

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