How To Install libcbor on Fedora 34

libcbor is A CBOR parsing library A CBOR parsing library

Introduction

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

What is libcbor

libcbor is a C library for parsing and generating CBOR. libcbor 0.7.0 3.fc34 x86_64 57 k libcbor-0.7.0-3.fc34.src.rpm fedora A CBOR parsing library http MIT libcbor is a C library for parsing and generating CBOR.

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

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

sudo dnf -y install libcbor

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

sudo yum -y install libcbor

How To Uninstall libcbor on Fedora 34

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

sudo dnf remove libcbor

libcbor Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/0a53bb6ac41f3357ffd9cc4774a92295edf8b1
/usr/lib64/libcbor.so.0.7
/usr/lib64/libcbor.so.0.7.0
/usr/share/doc/libcbor
/usr/share/doc/libcbor/README.md
/usr/share/licenses/libcbor
/usr/share/licenses/libcbor/LICENSE.md
/usr/share/man/man1/libcbor.1.gz
/usr/lib/.build-id
/usr/lib/.build-id/91
/usr/lib/.build-id/91/8106fc8e8e189024b790484934e5f3080f22b2
/usr/lib/libcbor.so.0.7
/usr/lib/libcbor.so.0.7.0
/usr/share/doc/libcbor
/usr/share/doc/libcbor/README.md
/usr/share/licenses/libcbor
/usr/share/licenses/libcbor/LICENSE.md
/usr/share/man/man1/libcbor.1.gz

References

Summary

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