How To Install libmicrohttpd on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install libmicrohttpd on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install libmicrohttpd.

Install libmicrohttpd on Rocky Linux 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 Rocky Linux 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 Rocky Linux 8

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

sudo dnf remove libmicrohttpd

libmicrohttpd Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/a0
/usr/lib/.build-id/a0/161d8440de3806a6a3337bd5c70999891a4f6a
/usr/lib/libmicrohttpd.so.12
/usr/lib/libmicrohttpd.so.12.46.0
/usr/share/doc/libmicrohttpd
/usr/share/doc/libmicrohttpd/README
/usr/share/licenses/libmicrohttpd
/usr/share/licenses/libmicrohttpd/COPYING
/usr/lib/.build-id
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/320d497ad9a2e183a9a51e056429c55b3af936
/usr/lib64/libmicrohttpd.so.12
/usr/lib64/libmicrohttpd.so.12.46.0
/usr/share/doc/libmicrohttpd
/usr/share/doc/libmicrohttpd/README
/usr/share/licenses/libmicrohttpd
/usr/share/licenses/libmicrohttpd/COPYING

References

Summary

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