How To Install jsoncpp on Fedora 34

jsoncpp is JSON library implemented in C++ JSON library implemented in C++

Introduction

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

What is jsoncpp

jsoncpp is an implementation of a JSON (http C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. jsoncpp 1.9.4 3.fc34 x86_64 96 k jsoncpp-1.9.4-3.fc34.src.rpm fedora JSON library implemented in C++ https Public Domain or MIT jsoncpp is an implementation of a JSON (http C++. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.

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

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

sudo dnf -y install jsoncpp

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

sudo yum -y install jsoncpp

How To Uninstall jsoncpp on Fedora 34

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

sudo dnf remove jsoncpp

jsoncpp Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/3a
/usr/lib/.build-id/3a/b7de35643edc5a8d4be94e73042f6a0e9ef31c
/usr/lib64/libjsoncpp.so.1.9.4
/usr/lib64/libjsoncpp.so.24
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/README.md
/usr/share/licenses/jsoncpp
/usr/share/licenses/jsoncpp/AUTHORS
/usr/share/licenses/jsoncpp/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/984b36c5f8ce27934a4d65cc9be126f7b37647
/usr/lib/libjsoncpp.so.1.9.4
/usr/lib/libjsoncpp.so.24
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/README.md
/usr/share/licenses/jsoncpp
/usr/share/licenses/jsoncpp/AUTHORS
/usr/share/licenses/jsoncpp/LICENSE

References

Summary

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