How To Install libnet-async-http-perl on Ubuntu 22.04
Introduction
In this tutorial we learn how to install libnet-async-http-perl
on Ubuntu 22.04.
What is libnet-async-http-perl
libnet-async-http-perl is:
Net::Async::HTTP implements an asynchronous HTTP user agent. It sends requests to servers, returning Future instances to yield responses when they are received. The object supports multiple concurrent connections to servers, and allows multiple requests in the pipeline to any one connection. Normally, only one such object will be needed per program to support any number of requests.
As well as using futures the module also supports a callback-based interface.
Net::Async::HTTP optionally supports SSL connections, if IO::Async::SSL is installed. If so, SSL can be requested either by passing a URI with the https scheme, or by passing a true value as the SSL parameter.
There are three methods to install libnet-async-http-perl
on Ubuntu 22.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 libnet-async-http-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 libnet-async-http-perl
using apt-get
by running the following command:
sudo apt-get -y install libnet-async-http-perl
Install libnet-async-http-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libnet-async-http-perl
using apt
by running the following command:
sudo apt -y install libnet-async-http-perl
Install libnet-async-http-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 libnet-async-http-perl
using aptitude
by running the following command:
sudo aptitude -y install libnet-async-http-perl
How To Uninstall libnet-async-http-perl on Ubuntu 22.04
To uninstall only the libnet-async-http-perl
package we can use the following command:
sudo apt-get remove libnet-async-http-perl
Uninstall libnet-async-http-perl And Its Dependencies
To uninstall libnet-async-http-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libnet-async-http-perl
Remove libnet-async-http-perl Configurations and Data
To remove libnet-async-http-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libnet-async-http-perl
Remove libnet-async-http-perl configuration, data, and all of its dependencies
We can use the following command to remove libnet-async-http-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libnet-async-http-perl
References
Summary
In this tutorial we learn how to install libnet-async-http-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.