How To Install http-parser.x86_64 on Amazon Linux 2

In this tutorial we learn how to install http-parser.x86_64 in Amazon Linux 2. http-parser.x86_64 is HTTP request/response parser for C

Introduction

In this tutorial we learn how to install http-parser.x86_64 on Amazon Linux 2.

What is http-parser.x86_64

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 to install http-parser.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install http-parser.x86_64.

Install http-parser.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install http-parser.x86_64 using yum by running the following command:

sudo yum -y install http-parser.x86_64

How To Uninstall http-parser.x86_64 on Amazon Linux 2

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

sudo yum remove http-parser.x86_64

http-parser.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libhttp_parser.so.2
/usr/lib64/libhttp_parser.so.2.9.4
/usr/lib64/libhttp_parser_strict.so.2
/usr/lib64/libhttp_parser_strict.so.2.9.4
/usr/share/doc/http-parser-2.9.4
/usr/share/doc/http-parser-2.9.4/AUTHORS
/usr/share/doc/http-parser-2.9.4/README.md
/usr/share/licenses/http-parser-2.9.4
/usr/share/licenses/http-parser-2.9.4/LICENSE-MIT

References

Summary

In this tutorial we learn how to install http-parser.x86_64 on Amazon Linux 2 using yum.