How To Install libclass-prototyped-perl on Ubuntu 18.04

In this tutorial we learn how to install libclass-prototyped-perl on Ubuntu 18.04. libclass-prototyped-perl is module for fast prototype-based OO programming in Perl

Introduction

In this tutorial we learn how to install libclass-prototyped-perl on Ubuntu 18.04.

What is libclass-prototyped-perl

libclass-prototyped-perl is:

Class:Prototyped provides for efficient and simple prototype-based programming in Perl. You can provide different subroutines for each object, and also have objects inherit their behavior and state from another object.

Class::Prototyped borrows heavily from the programming language Self. The structure of an object is inspected and modified through mirrors, which are created by calling “reflect” on an object or class that inherits from Class::Prototyped.

Prototype-based programming is most useful when the cleanest way for code to use a module is to subclass it, or when one finds oneself avoiding this by passing anonymous subroutines as parameters to “new”. Prototype-based programming is also useful in situations that otherwise require storing anonymous subroutines in databases, configuration files, or text files, or when users of a module are expected to override subroutines to change its behabior.

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

sudo apt-get -y install libclass-prototyped-perl

Install libclass-prototyped-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libclass-prototyped-perl

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

sudo aptitude -y install libclass-prototyped-perl

How To Uninstall libclass-prototyped-perl on Ubuntu 18.04

To uninstall only the libclass-prototyped-perl package we can use the following command:

sudo apt-get remove libclass-prototyped-perl

Uninstall libclass-prototyped-perl And Its Dependencies

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

sudo apt-get -y autoremove libclass-prototyped-perl

Remove libclass-prototyped-perl Configurations and Data

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

sudo apt-get -y purge libclass-prototyped-perl

Remove libclass-prototyped-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libclass-prototyped-perl

References

Summary

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