How To Install json-c.x86_64 on Amazon Linux 2

In this tutorial we learn how to install json-c.x86_64 in Amazon Linux 2. json-c.x86_64 is A JSON implementation in C

Introduction

In this tutorial we learn how to install json-c.x86_64 on Amazon Linux 2.

What is json-c.x86_64

JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects.

We can use yum to install json-c.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install json-c.x86_64.

Install json-c.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 json-c.x86_64 using yum by running the following command:

sudo yum -y install json-c.x86_64

How To Uninstall json-c.x86_64 on Amazon Linux 2

To uninstall only the json-c.x86_64 package we can use the following command:

sudo yum remove json-c.x86_64

json-c.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libjson-c.so.2
/usr/lib64/libjson-c.so.2.0.1
/usr/lib64/libjson.so.0
/usr/lib64/libjson.so.0.1.0
/usr/share/doc/json-c-0.11
/usr/share/doc/json-c-0.11/AUTHORS
/usr/share/doc/json-c-0.11/COPYING
/usr/share/doc/json-c-0.11/ChangeLog
/usr/share/doc/json-c-0.11/NEWS
/usr/share/doc/json-c-0.11/README
/usr/share/doc/json-c-0.11/README.html

References

Summary

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