How To Install libmousex-types-perl on Ubuntu 18.04

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

Introduction

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

What is libmousex-types-perl

libmousex-types-perl is:

MouseX::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 Mouse types.

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

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

Install libmousex-types-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmousex-types-perl

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

sudo aptitude -y install libmousex-types-perl

How To Uninstall libmousex-types-perl on Ubuntu 18.04

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

sudo apt-get remove libmousex-types-perl

Uninstall libmousex-types-perl And Its Dependencies

To uninstall libmousex-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 libmousex-types-perl

Remove libmousex-types-perl Configurations and Data

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

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

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

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

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

References

Summary

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