How To Install libmicrohttpd on Fedora 34
Introduction
In this tutorial we learn how to install libmicrohttpd
on Fedora 34.
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 libmicrohttpd 1 0.9.73 1.fc34 x86_64 90 k libmicrohttpd-0.9.73-1.fc34.src.rpm updates Lightweight library for embedding a webserver in applications http LGPLv2+ 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install libmicrohttpd.
Install libmicrohttpd 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 libmicrohttpd
using dnf
by running the following command:
sudo dnf -y install libmicrohttpd
Install libmicrohttpd 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 libmicrohttpd
using yum
by running the following command:
sudo yum -y install libmicrohttpd
How To Uninstall libmicrohttpd on Fedora 34
To uninstall only the libmicrohttpd
package we can use the following command:
sudo dnf remove libmicrohttpd
libmicrohttpd Package Contents on Fedora 34
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/36d01cef98a31be5357106c251027086987ab6
/usr/lib64/libmicrohttpd.so.12
/usr/lib64/libmicrohttpd.so.12.57.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/5c
/usr/lib/.build-id/5c/cd18bd799a99766509b76e6b1c35ace7a42e77
/usr/lib/libmicrohttpd.so.12
/usr/lib/libmicrohttpd.so.12.57.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/70
/usr/lib/.build-id/70/ac06de10f6bbf96c7ab493bd6f3e48c4a0cb72
/usr/lib64/libmicrohttpd.so.12
/usr/lib64/libmicrohttpd.so.12.58.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/d9
/usr/lib/.build-id/d9/eb8ecf3f2bb82fe7e5935240b800bdaf452d6d
/usr/lib/libmicrohttpd.so.12
/usr/lib/libmicrohttpd.so.12.58.0
/usr/share/doc/libmicrohttpd
/usr/share/doc/libmicrohttpd/README
/usr/share/licenses/libmicrohttpd
/usr/share/licenses/libmicrohttpd/COPYING
References
- [libmicrohttpd website](http://www.gnu.org/software/libmicrohttpd/ http://www.gnu.org/software/libmicrohttpd/)
Summary
In this tutorial we learn how to install libmicrohttpd
on Fedora 34 using yum and dnf.