How To Install libmicrohttpd on AlmaLinux 8

In this tutorial we learn how to install libmicrohttpd in AlmaLinux 8. libmicrohttpd is Lightweight library for embedding a webserver in applications

Introduction

In this tutorial we learn how to install libmicrohttpd on AlmaLinux 8.

What is libmicrohttpd

GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application. Key features that distinguish libmicrohttpd from other projects are * C library * API is simple, expressive and fully reentrant * Implementation is http 1.1 compliant * HTTP server can listen on multiple ports * Support for IPv6 * Support for incremental processing of POST data * Creates binary of only 25k (for now) * Three different threading models

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

Install libmicrohttpd on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install libmicrohttpd

Install libmicrohttpd on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install libmicrohttpd

How To Uninstall libmicrohttpd on AlmaLinux 8

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

sudo dnf remove libmicrohttpd

References

Summary

In this tutorial we learn how to install libmicrohttpd on AlmaLinux 8 using yum and dnf.