How To Install nghttp2.x86_64 on Amazon Linux 2

In this tutorial we learn how to install nghttp2.x86_64 in Amazon Linux 2. nghttp2.x86_64 is Experimental HTTP/2 client, server and proxy

Introduction

In this tutorial we learn how to install nghttp2.x86_64 on Amazon Linux 2.

What is nghttp2.x86_64

This package contains the HTTP/2 client, server and proxy programs.

We can use yum to install nghttp2.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install nghttp2.x86_64.

Install nghttp2.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 nghttp2.x86_64 using yum by running the following command:

sudo yum -y install nghttp2.x86_64

How To Uninstall nghttp2.x86_64 on Amazon Linux 2

To uninstall only the nghttp2.x86_64 package we can use the following command:

sudo yum remove nghttp2.x86_64

nghttp2.x86_64 Package Contents on Amazon Linux 2

/usr/bin/h2load
/usr/bin/nghttp
/usr/bin/nghttpd
/usr/bin/nghttpx
/usr/lib/systemd/system/nghttpx.service
/usr/share/man/man1/h2load.1.gz
/usr/share/man/man1/nghttp.1.gz
/usr/share/man/man1/nghttpd.1.gz
/usr/share/man/man1/nghttpx.1.gz
/usr/share/nghttp2
/usr/share/nghttp2/fetch-ocsp-response

References

Summary

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