How To Install libmango-perl on Ubuntu 18.04

In this tutorial we learn how to install libmango-perl on Ubuntu 18.04. libmango-perl is Pure-Perl non-blocking I/O MongoDB client

Introduction

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

What is libmango-perl

libmango-perl is:

Mango is a pure-Perl non-blocking I/O MongoDB client, optimized for use with the Mojolicious real-time web framework, and with multiple event loop support.

To learn more about MongoDB you should take a look at the official documentation|http://docs.mongodb.org.

Note that this whole distribution is EXPERIMENTAL and will change without warning!

Many features are still incomplete or missing, so you should wait for a stable 1.0 release before using any of the modules in this distribution in a production environment. Unsafe operations are not supported, so far this is considered a feature.

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

sudo apt-get -y install libmango-perl

Install libmango-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmango-perl

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

sudo aptitude -y install libmango-perl

How To Uninstall libmango-perl on Ubuntu 18.04

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

sudo apt-get remove libmango-perl

Uninstall libmango-perl And Its Dependencies

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

sudo apt-get -y autoremove libmango-perl

Remove libmango-perl Configurations and Data

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

sudo apt-get -y purge libmango-perl

Remove libmango-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmango-perl

References

Summary

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