How To Install jq.i686 on Amazon Linux 2

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

Introduction

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

What is jq.i686

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.i686 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install jq.i686.

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

sudo yum -y install jq.i686

How To Uninstall jq.i686 on Amazon Linux 2

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

sudo yum remove jq.i686

jq.i686 Package Contents on Amazon Linux 2

/usr/bin/jq
/usr/lib/libjq.so.1
/usr/lib/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.i686 on Amazon Linux 2 using yum.