How To Install nghttp2 on Fedora 34

nghttp2 is Experimental HTTP/2 client, server and proxy

Introduction

In this tutorial we learn how to install nghttp2 on Fedora 34.

What is nghttp2

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

We can use yum or dnf to install nghttp2 on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install nghttp2.

Install nghttp2 on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nghttp2 using dnf by running the following command:

sudo dnf -y install nghttp2

Install nghttp2 on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install nghttp2 using yum by running the following command:

sudo yum -y install nghttp2

How To Uninstall nghttp2 on Fedora 34

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

sudo dnf remove nghttp2

nghttp2 Package Contents on Fedora 34

/usr/bin/h2load
/usr/bin/nghttp
/usr/bin/nghttpd
/usr/bin/nghttpx
/usr/lib/.build-id
/usr/lib/.build-id/07
/usr/lib/.build-id/07/2b1b27ab6887794a1315181c07cd4b07aa3d20
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/0bfe1abae39ff4648be324c83fd4e42fb529e8
/usr/lib/.build-id/56
/usr/lib/.build-id/56/bc957517a98b13f67e5aacf30d2bb1e158675f
/usr/lib/.build-id/80
/usr/lib/.build-id/80/94298253c9414076f39a0b9ab925b79c5cdad1
/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 on Fedora 34 using yum and dnf.