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

In this tutorial we learn how to install json-c-devel.x86_64 in Amazon Linux 2. json-c-devel.x86_64 is Development headers and library for json-c

Introduction

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

What is json-c-devel.x86_64

This package contains the development headers and library for json-c.

We can use yum to install json-c-devel.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-devel.x86_64.

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

sudo yum -y install json-c-devel.x86_64

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

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

sudo yum remove json-c-devel.x86_64

json-c-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/json
/usr/include/json-c
/usr/include/json/arraylist.h
/usr/include/json/bits.h
/usr/include/json/debug.h
/usr/include/json/json.h
/usr/include/json/json_c_version.h
/usr/include/json/json_config.h
/usr/include/json/json_inttypes.h
/usr/include/json/json_object.h
/usr/include/json/json_object_iterator.h
/usr/include/json/json_object_private.h
/usr/include/json/json_tokener.h
/usr/include/json/json_util.h
/usr/include/json/linkhash.h
/usr/include/json/printbuf.h
/usr/include/json/random_seed.h
/usr/lib64/libjson-c.so
/usr/lib64/libjson.so
/usr/lib64/pkgconfig/json-c.pc
/usr/lib64/pkgconfig/json.pc

References

Summary

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