How To Install libcoap on Fedora 34

libcoap is C library implementation of CoAP C library implementation of CoAP

Introduction

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

What is libcoap

The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation. libcoap implements a lightweight application-protocol for devices with constrained resources such as computing power, RF range, memory, bandwidth, or network packet sizes. This protocol, CoAP, was standardized in the IETF working group “CoRE” as RFC 7252. libcoap 4.2.1 3.fc34 x86_64 82 k libcoap-4.2.1-3.fc34.src.rpm fedora C library implementation of CoAP https BSD The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things. The protocol is designed for machine-to-machine (M2M) applications such as smart energy and building automation. libcoap implements a lightweight application-protocol for devices with constrained resources such as computing power, RF range, memory, bandwidth, or network packet sizes. This protocol, CoAP, was standardized in the IETF working group “CoRE” as RFC 7252.

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

Install libcoap 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 libcoap using dnf by running the following command:

sudo dnf -y install libcoap

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

sudo yum -y install libcoap

How To Uninstall libcoap on Fedora 34

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

sudo dnf remove libcoap

libcoap Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/48
/usr/lib/.build-id/48/7f2f74d80ca9e46b1670087458832219859031
/usr/lib/libcoap-2-openssl.so.2
/usr/lib/libcoap-2-openssl.so.2.0.1
/usr/share/doc/libcoap
/usr/share/doc/libcoap/AUTHORS
/usr/share/licenses/libcoap
/usr/share/licenses/libcoap/COPYING
/usr/share/licenses/libcoap/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/38f686627228b877611a3e2f8b81b336d32a02
/usr/lib64/libcoap-2-openssl.so.2
/usr/lib64/libcoap-2-openssl.so.2.0.1
/usr/share/doc/libcoap
/usr/share/doc/libcoap/AUTHORS
/usr/share/licenses/libcoap
/usr/share/licenses/libcoap/COPYING
/usr/share/licenses/libcoap/LICENSE

References

Summary

In this tutorial we learn how to install libcoap on Fedora 34 using yum and dnf.