How To Install libio-async-perl on Ubuntu 18.04

In this tutorial we learn how to install libio-async-perl on Ubuntu 18.04. libio-async-perl is modules for asynchronous event-driven programming

Introduction

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

What is libio-async-perl

libio-async-perl is:

The IO::Async collection of modules allows programs to be written that perform asynchronous filehandle IO operations.

A typical program using them would consist of a single subclass of IO::Async::Loop to act as a container of other objects, which perform the actual IO work required by the program. As well as IO handles, the loop also supports timers and signal handlers, and includes more higher-level functionality built on top of these basic parts.

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

sudo apt-get -y install libio-async-perl

Install libio-async-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libio-async-perl

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

sudo aptitude -y install libio-async-perl

How To Uninstall libio-async-perl on Ubuntu 18.04

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

sudo apt-get remove libio-async-perl

Uninstall libio-async-perl And Its Dependencies

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

sudo apt-get -y autoremove libio-async-perl

Remove libio-async-perl Configurations and Data

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

sudo apt-get -y purge libio-async-perl

Remove libio-async-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libio-async-perl

References

Summary

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