How To Install perl-HTTP-Parser on CentOS 7

In this tutorial we learn how to install perl-HTTP-Parser on CentOS 7. perl-HTTP-Parser is Parse HTTP/1.1 request into HTTP::Request/Response object

Introduction

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

What is perl-HTTP-Parser

This is an HTTP request parser. It takes chunks of text as received and returns a ‘hint’ as to what is required, or returns the HTTP chunking is supported. It dies if it finds an error.

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

Install perl-HTTP-Parser 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-HTTP-Parser using yum by running the following command:

sudo yum -y install perl-HTTP-Parser

Install perl-HTTP-Parser 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-HTTP-Parser using dnf by running the following command:

sudo dnf -y install perl-HTTP-Parser

How To Uninstall perl-HTTP-Parser on CentOS 7

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

sudo dnf remove perl-HTTP-Parser

References

Summary

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