How To Install jansson.x86_64 on Amazon Linux 2

In this tutorial we learn how to install jansson.x86_64 in Amazon Linux 2. jansson.x86_64 is C library for encoding, decoding and manipulating JSON data

Introduction

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

What is jansson.x86_64

Small library for parsing and writing JSON documents.

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

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

sudo yum -y install jansson.x86_64

How To Uninstall jansson.x86_64 on Amazon Linux 2

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

sudo yum remove jansson.x86_64

jansson.x86_64 Package Contents on Amazon Linux 2

/usr/lib64/libjansson.so.4
/usr/lib64/libjansson.so.4.10.0
/usr/share/doc/jansson-2.10
/usr/share/doc/jansson-2.10/CHANGES
/usr/share/doc/jansson-2.10/LICENSE

References

Summary

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