How To Install jsoncpp.x86_64 on Amazon Linux 2

In this tutorial we learn how to install jsoncpp.x86_64 in Amazon Linux 2. jsoncpp.x86_64 is JSON library implemented in C++

Introduction

In this tutorial we learn how to install jsoncpp.x86_64 on Amazon Linux 2.

What is jsoncpp.x86_64

jsoncpp is an implementation of a JSON (http and writer in 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 to install jsoncpp.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jsoncpp.x86_64.

Install jsoncpp.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install jsoncpp.x86_64 using yum by running the following command:

sudo yum -y install jsoncpp.x86_64

How To Uninstall jsoncpp.x86_64 on Amazon Linux 2

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

sudo yum remove jsoncpp.x86_64

jsoncpp.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libjsoncpp.so.1
/usr/lib64/libjsoncpp.so.1.7.2
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/README.md
/usr/share/licenses/jsoncpp-1.7.2
/usr/share/licenses/jsoncpp-1.7.2/AUTHORS
/usr/share/licenses/jsoncpp-1.7.2/LICENSE

References

Summary

In this tutorial we learn how to install jsoncpp.x86_64 on Amazon Linux 2 using yum.