How To Install librose-object-perl on Ubuntu 18.04

In this tutorial we learn how to install librose-object-perl on Ubuntu 18.04. librose-object-perl is simple Perl object base class

Introduction

In this tutorial we learn how to install librose-object-perl on Ubuntu 18.04.

What is librose-object-perl

librose-object-perl is:

Rose::Class is a generic base class for classes. It provides a single class method (error), but may be expanded further in the future.

A class that inherits from Rose::Class is not expected to allow objects of that class to be instantiated, since the namespace for class and object methods is shared. For example, it is common for Rose::Object-derived classes to have error methods, but this would conflict with the Rose::Class method of the same name.

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

sudo apt-get -y install librose-object-perl

Install librose-object-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librose-object-perl

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

sudo aptitude -y install librose-object-perl

How To Uninstall librose-object-perl on Ubuntu 18.04

To uninstall only the librose-object-perl package we can use the following command:

sudo apt-get remove librose-object-perl

Uninstall librose-object-perl And Its Dependencies

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

sudo apt-get -y autoremove librose-object-perl

Remove librose-object-perl Configurations and Data

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

sudo apt-get -y purge librose-object-perl

Remove librose-object-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librose-object-perl

References

Summary

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