How To Install http-parser on CentOS 7
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.
After updating yum database, We can install http-parser
using yum
by running the following command:
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.
After updating yum database, We can install http-parser
using dnf
by running the following command:
How To Uninstall http-parser on CentOS 7
To uninstall only the http-parser
package we can use the following command:
References
Summary
In this tutorial we learn how to install http-parser
on CentOS 7 using yum
and dnf
.