How To Install libhttp-async-perl on Debian 11
Introduction
In this tutorial we learn how to install libhttp-async-perl
on Debian 11.
What is libhttp-async-perl
libhttp-async-perl is:
Although using the conventional LWP::UserAgent is fast and easy it does have some drawbacks - the code execution blocks until the request has been completed and it is only possible to process one request at a time. HTTP::Async attempts to address these limitations.
It gives you a ‘Async’ object that you can add requests to, and then get the requests off as they finish. The actual sending and receiving of the requests is abstracted. As soon as you add a request it is transmitted, if there are too many requests in progress at the moment they are queued. There is no concept of starting or stopping - it runs continuously.
Whilst it is waiting to receive data it returns control to the code that called it meaning that you can carry out processing whilst fetching data from the network. All without forking or threading - it is actually done using select lists.
There are three methods to install libhttp-async-perl
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libhttp-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 libhttp-async-perl
using apt-get
by running the following command:
sudo apt-get -y install libhttp-async-perl
Install libhttp-async-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libhttp-async-perl
using apt
by running the following command:
sudo apt -y install libhttp-async-perl
Install libhttp-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 Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libhttp-async-perl
using aptitude
by running the following command:
sudo aptitude -y install libhttp-async-perl
How To Uninstall libhttp-async-perl on Debian 11
To uninstall only the libhttp-async-perl
package we can use the following command:
sudo apt-get remove libhttp-async-perl
Uninstall libhttp-async-perl And Its Dependencies
To uninstall libhttp-async-perl
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove libhttp-async-perl
Remove libhttp-async-perl Configurations and Data
To remove libhttp-async-perl
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge libhttp-async-perl
Remove libhttp-async-perl configuration, data, and all of its dependencies
We can use the following command to remove libhttp-async-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libhttp-async-perl
Dependencies
libhttp-async-perl have the following dependencies:
References
Summary
In this tutorial we learn how to install libhttp-async-perl
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.