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

In this tutorial we learn how to install yajl-devel.x86_64 in Amazon Linux 2. yajl-devel.x86_64 is Libraries, includes, etc to develop with YAJL

Introduction

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

What is yajl-devel.x86_64

Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser written in ANSI C, and a small validating JSON generator. This sub-package provides the libraries and includes necessary for developing against the YAJL library

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

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

sudo yum -y install yajl-devel.x86_64

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

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

sudo yum remove yajl-devel.x86_64

yajl-devel.x86_64 Package Contents on Amazon Linux 2

/usr/include/yajl
/usr/include/yajl/yajl_common.h
/usr/include/yajl/yajl_gen.h
/usr/include/yajl/yajl_parse.h
/usr/include/yajl/yajl_tree.h
/usr/include/yajl/yajl_version.h
/usr/lib64/libyajl.so
/usr/lib64/pkgconfig/yajl.pc
/usr/share/doc/yajl-devel-2.0.4
/usr/share/doc/yajl-devel-2.0.4/COPYING

References

Summary

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