How To Install jq.x86_64 on Amazon Linux 2

In this tutorial we learn how to install jq.x86_64 in Amazon Linux 2. jq.x86_64 is Command-line JSON processor

Introduction

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

What is jq.x86_64

lightweight and flexible command-line JSON processor jq is like sed for JSON data – you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text. It is written in portable C, and it has zero runtime dependencies. jq can mangle the data format that you have into the one that you want with very little effort, and the program to do so is often shorter and simpler than you’d expect.

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

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

sudo yum -y install jq.x86_64

How To Uninstall jq.x86_64 on Amazon Linux 2

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

sudo yum remove jq.x86_64

jq.x86_64 Package Contents on Amazon Linux 2

/usr/bin/jq
/usr/lib64/libjq.so.1
/usr/lib64/libjq.so.1.0.4
/usr/share/doc/jq/AUTHORS
/usr/share/doc/jq/COPYING
/usr/share/doc/jq/README
/usr/share/doc/jq/README.md
/usr/share/man/man1/jq.1.gz

References

Summary

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