How To Install http-parser on CentOS 7

In this tutorial we learn how to install http-parser on CentOS 7. http-parser is HTTP request/response parser for C

Introduction

In this tutorial we learn how to install http-parser on CentOS 7.

What is http-parser

This is a parser for HTTP messages written in C. It parses both requests and responses. The parser is designed to be used in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime. Depending on your architecture, it only requires about 40 bytes of data per message stream (in a web server that is per connection). This is a parser for HTTP messages written in C. It parses both requests and responses. The parser is designed to be used in performance HTTP applications. It does not make any syscalls nor allocations, it does not buffer data, it can be interrupted at anytime. Depending on your architecture, it only requires about 40 bytes of data per message stream (in a web server that is per connection).

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

Install 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 http-parser using yum by running the following command:

sudo yum -y install http-parser

Install 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 http-parser using dnf by running the following command:

sudo dnf -y install http-parser

How To Uninstall http-parser on CentOS 7

To uninstall only the http-parser package we can use the following command:

sudo dnf remove http-parser

References

Summary

In this tutorial we learn how to install http-parser on CentOS 7 using yum and dnf.