How To Install libanyevent-perl on Kali Linux
Introduction
In this tutorial we learn how to install libanyevent-perl on Kali Linux.
What is libanyevent-perl
libanyevent-perl is:
AnyEvent is not an event model itself, it only interfaces to whatever event model the main program happens to use, in a pragmatic way. For event models, the statement “there can only be one” is a bitter reality: In general, only one event loop can be active at the same time in a process. This module cannot change this, but it can hide the differences between them.
The goal of AnyEvent is to offer module authors the ability to do event programming (waiting for I/O or timer events) without subscribing to a religion, a way of living, and most importantly: without forcing your module users into the same thing by forcing them to use the same event model you use.
During the first call of any watcher-creation method, the module tries to detect the currently loaded event loop by probing whether one of the following modules is already loaded: EV, AnyEvent::Loop, Event, Glib, Tk, Event::Lib, Qt, POE. The first one found is used. If none are detected, the module tries to load the first four modules in the order given; but note that if EV is not available, the pure-perl AnyEvent::Loop should always work, so the other two are not normally tried.
There are three methods to install libanyevent-perl on Kali Linux. 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-perl Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libanyevent-perl using apt-get by running the following command:
sudo apt-get -y install libanyevent-perlInstall libanyevent-perl Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libanyevent-perl using apt by running the following command:
sudo apt -y install libanyevent-perlInstall libanyevent-perl Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libanyevent-perl using aptitude by running the following command:
sudo aptitude -y install libanyevent-perlHow To Uninstall libanyevent-perl on Kali Linux
To uninstall only the libanyevent-perl package we can use the following command:
sudo apt-get remove libanyevent-perlUninstall libanyevent-perl And Its Dependencies
To uninstall libanyevent-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libanyevent-perlRemove libanyevent-perl Configurations and Data
To remove libanyevent-perl configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libanyevent-perlRemove libanyevent-perl configuration, data, and all of its dependencies
We can use the following command to remove libanyevent-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libanyevent-perlDependencies
libanyevent-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libanyevent-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.