How To Install json-table on Rocky Linux 8

In this tutorial we learn how to install json-table on Rocky Linux 8. json-table is Command-line tool to transform nested JSON into tabular data

Introduction

In this tutorial we learn how to install json-table on Rocky Linux 8.

What is json-table

Jt reads UTF-8 encoded JSON forms from stdin and writes tab separated values (or CSV) to stdout. A simple stack-based programming language is used to extract values from the JSON input for printing.

We can use yum or dnf to install json-table on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install json-table.

Install json-table on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install json-table using dnf by running the following command:

sudo dnf -y install json-table

Install json-table on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install json-table using yum by running the following command:

sudo yum -y install json-table

How To Uninstall json-table on Rocky Linux 8

To uninstall only the json-table package we can use the following command:

sudo dnf remove json-table

json-table Package Contents on Rocky Linux 8

/usr/bin/jt
/usr/lib/.build-id
/usr/lib/.build-id/b3
/usr/lib/.build-id/b3/00e1aabea7aae88fd3ce43091cf5b79d16e315
/usr/share/doc/json-table
/usr/share/doc/json-table/README.md
/usr/share/doc/json-table/jt.1.css
/usr/share/doc/json-table/jt.1.html
/usr/share/doc/json-table/jt.1.ronn
/usr/share/licenses/json-table
/usr/share/licenses/json-table/LICENSE
/usr/share/man/man1/jt.1.gz

References

Summary

In this tutorial we learn how to install json-table on Rocky Linux 8 using yum and dnf.