How To Install jsoncpp.i686 on Amazon Linux 2

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

Introduction

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

What is jsoncpp.i686

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.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jsoncpp.i686.

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

sudo yum -y install jsoncpp.i686

How To Uninstall jsoncpp.i686 on Amazon Linux 2

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

sudo yum remove jsoncpp.i686

jsoncpp.i686 Package Contents on Amazon Linux 2

/usr/lib/libjsoncpp.so.1
/usr/lib/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.i686 on Amazon Linux 2 using yum.