How To Install jsoncpp-devel.x86_64 on Amazon Linux 2

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

Introduction

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

What is jsoncpp-devel.x86_64

This package contains the development headers and library for jsoncpp.

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

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

sudo yum -y install jsoncpp-devel.x86_64

How To Uninstall jsoncpp-devel.x86_64 on Amazon Linux 2

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

sudo yum remove jsoncpp-devel.x86_64

jsoncpp-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/json
/usr/include/json/allocator.h
/usr/include/json/assertions.h
/usr/include/json/autolink.h
/usr/include/json/config.h
/usr/include/json/features.h
/usr/include/json/forwards.h
/usr/include/json/json.h
/usr/include/json/reader.h
/usr/include/json/value.h
/usr/include/json/version.h
/usr/include/json/writer.h
/usr/lib64/cmake
/usr/lib64/cmake/jsoncpp
/usr/lib64/cmake/jsoncpp/jsoncppConfig-release.cmake
/usr/lib64/cmake/jsoncpp/jsoncppConfig.cmake
/usr/lib64/libjsoncpp.so
/usr/lib64/pkgconfig/jsoncpp.pc
/usr/share/doc/jsoncpp
/usr/share/doc/jsoncpp/NEWS.txt

References

Summary

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