How To Install perl-AnyEvent-HTTP on CentOS 7

In this tutorial we learn how to install perl-AnyEvent-HTTP on CentOS 7. perl-AnyEvent-HTTP is Simple but non-blocking HTTP/HTTPS client

Introduction

In this tutorial we learn how to install perl-AnyEvent-HTTP on CentOS 7.

What is perl-AnyEvent-HTTP

This module is an AnyEvent user, you need to make sure that you use and run a supported event loop. This module implements a simple, stateless and non-blocking HTTP client. It supports GET, POST and other request methods, cookies and more, all on a very low level. It can follow redirects supports proxies and automatically limits the number of connections to the values specified in the RFC. It should generally be a “good client” that is enough for most HTTP tasks. Simple tasks should be simple, but complex tasks should still be possible as the user retains control over request and response headers. The caller is responsible for authentication management, cookies (if the simplistic implementation in this module doesn’t suffice), referrer and other high-level protocol details for which this module offers only limited support.

We can use yum or dnf to install perl-AnyEvent-HTTP on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-AnyEvent-HTTP.

Install perl-AnyEvent-HTTP on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-AnyEvent-HTTP using yum by running the following command:

sudo yum -y install perl-AnyEvent-HTTP

Install perl-AnyEvent-HTTP on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install perl-AnyEvent-HTTP using dnf by running the following command:

sudo dnf -y install perl-AnyEvent-HTTP

How To Uninstall perl-AnyEvent-HTTP on CentOS 7

To uninstall only the perl-AnyEvent-HTTP package we can use the following command:

sudo dnf remove perl-AnyEvent-HTTP

References

Summary

In this tutorial we learn how to install perl-AnyEvent-HTTP on CentOS 7 using yum and dnf.