How To Install libasync-interrupt-perl on Ubuntu 18.04

In this tutorial we learn how to install libasync-interrupt-perl on Ubuntu 18.04. libasync-interrupt-perl is module to allow C/XS libraries to interrupt perl

Introduction

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

What is libasync-interrupt-perl

libasync-interrupt-perl is:

Async::Interrupt is a Perl module that implements asynchronous interruptions, similar in nature to UNIX signals, in a cross-platform manner. Modules might want to run code asynchronously (in another thread or from a signal handler) and then signal the interpreter on certain events. One common way is to write data to a pipe and use an event handling toolkit to watch for I/O events. Another way is to send a signal. Those methods are slow, and in the case of a pipe, also not asynchronous - it won’t interrupt a running Perl interpreter.

This module implements asynchronous notifications that enable you to signal running Perl code from another thread, asynchronously, and sometimes even without using a single syscall.

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

sudo apt-get -y install libasync-interrupt-perl

Install libasync-interrupt-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libasync-interrupt-perl

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

sudo aptitude -y install libasync-interrupt-perl

How To Uninstall libasync-interrupt-perl on Ubuntu 18.04

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

sudo apt-get remove libasync-interrupt-perl

Uninstall libasync-interrupt-perl And Its Dependencies

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

sudo apt-get -y autoremove libasync-interrupt-perl

Remove libasync-interrupt-perl Configurations and Data

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

sudo apt-get -y purge libasync-interrupt-perl

Remove libasync-interrupt-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libasync-interrupt-perl

References

Summary

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