How To Install jq on Fedora 34
Introduction
In this tutorial we learn how to install jq
on Fedora 34.
What is jq
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. jq 1.6 7.fc34 x86_64 179 k jq-1.6-7.fc34.src.rpm fedora Command-line JSON processor http MIT and ASL 2.0 and CC-BY and GPLv3 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
or dnf
to install jq
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install jq.
Install jq on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install jq
using dnf
by running the following command:
sudo dnf -y install jq
Install jq on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install jq
using yum
by running the following command:
sudo yum -y install jq
How To Uninstall jq on Fedora 34
To uninstall only the jq
package we can use the following command:
sudo dnf remove jq
jq Package Contents on Fedora 34
/usr/bin/jq
/usr/lib/.build-id
/usr/lib/.build-id/25
/usr/lib/.build-id/25/e76174e124e299ee3c97382ee27a50bf53f9ba
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/21f031151f2197feaf429665cb478c319db015
/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
/usr/bin/jq
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/6514a35ed1288e785401293846d9fdb27d6cc6
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/67f3a10f5e82f3c37eb7bc0c05702aed1dd3f4
/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
- [jq website](http://stedolan.github.io/jq/ http://stedolan.github.io/jq/)
Summary
In this tutorial we learn how to install jq
on Fedora 34 using yum and dnf.