How To Install libmoosex-types-perl on Ubuntu 18.04

In this tutorial we learn how to install libmoosex-types-perl on Ubuntu 18.04. libmoosex-types-perl is Moose extension to organise types in libraries

Introduction

In this tutorial we learn how to install libmoosex-types-perl on Ubuntu 18.04.

What is libmoosex-types-perl

libmoosex-types-perl is:

MooseX::Types allows developers to organise and selectively import your own and the built-in types in libraries, rather than the default behaviour where types are global. As a nice side effect, it catches typographic errors at compile-time too.

The main motivation for this module is to provide an easy way of preventing conflicts with your type names, since the internal fully qualified names of the types will be prefixed with the library’s name. It also provides some convenient functions for working with Moose types.

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

sudo apt-get -y install libmoosex-types-perl

Install libmoosex-types-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmoosex-types-perl

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

sudo aptitude -y install libmoosex-types-perl

How To Uninstall libmoosex-types-perl on Ubuntu 18.04

To uninstall only the libmoosex-types-perl package we can use the following command:

sudo apt-get remove libmoosex-types-perl

Uninstall libmoosex-types-perl And Its Dependencies

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

sudo apt-get -y autoremove libmoosex-types-perl

Remove libmoosex-types-perl Configurations and Data

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

sudo apt-get -y purge libmoosex-types-perl

Remove libmoosex-types-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmoosex-types-perl

References

Summary

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