How To Install libfuture-perl on Ubuntu 18.04

In this tutorial we learn how to install libfuture-perl on Ubuntu 18.04. libfuture-perl is module for operations awaiting completion

Introduction

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

What is libfuture-perl

libfuture-perl is:

A Future object represents an operation that is currently in progress, or has recently completed. It can be used in a variety of ways to manage the flow of control, and data, through an asynchronous program.

Some futures represent a single operation and are explicitly marked as ready by calling the done or fail methods. These are called “leaf” futures here, and are returned by the new constructor.

Other futures represent a collection sub-tasks, and are implicitly marked as ready depending on the readiness of their component futures as required. These are called “dependent” futures here, and are returned by the various wait_* and need_* constructors.

It is intended that library functions that perform asynchronous operations would use Future objects to represent outstanding operations, and allow their calling programs to control or wait for these operations to complete. The implementation and the user of such an interface would typically make use of different methods on the class. The methods below are documented in two sections; those of interest to each side of the interface.

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

sudo apt-get -y install libfuture-perl

Install libfuture-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfuture-perl

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

sudo aptitude -y install libfuture-perl

How To Uninstall libfuture-perl on Ubuntu 18.04

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

sudo apt-get remove libfuture-perl

Uninstall libfuture-perl And Its Dependencies

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

sudo apt-get -y autoremove libfuture-perl

Remove libfuture-perl Configurations and Data

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

sudo apt-get -y purge libfuture-perl

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

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

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

References

Summary

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