How To Install libanyevent-callback-perl on Ubuntu 18.04

In this tutorial we learn how to install libanyevent-callback-perl on Ubuntu 18.04. libanyevent-callback-perl is callback aggregator for AnyEvent watchers

Introduction

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

What is libanyevent-callback-perl

libanyevent-callback-perl is:

The module allows You to create callback’s hierarchy. Also the module groups error and result callbacks into one object.

Also the module checks if one callback was called by watcher or not. If a watcher doesn’t call result or error callback, error callback will be called automatically.

Also the module checks if a callback was called reentrant. In the case the module will complain (using “carp” in Carp).

If a watcher touches error callback and if superior didn’t define error callback, the module will call error callback upwards hierarchy.

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

sudo apt-get -y install libanyevent-callback-perl

Install libanyevent-callback-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libanyevent-callback-perl

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

sudo aptitude -y install libanyevent-callback-perl

How To Uninstall libanyevent-callback-perl on Ubuntu 18.04

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

sudo apt-get remove libanyevent-callback-perl

Uninstall libanyevent-callback-perl And Its Dependencies

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

sudo apt-get -y autoremove libanyevent-callback-perl

Remove libanyevent-callback-perl Configurations and Data

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

sudo apt-get -y purge libanyevent-callback-perl

Remove libanyevent-callback-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libanyevent-callback-perl

References

Summary

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