How To Install gojq on Fedora 36
In this tutorial we learn how to install gojq in Fedora 36. gojq is Pure Go implementation of jq
Introduction
In this tutorial we learn how to install gojq on Fedora 36.
What is gojq
Pure Go implementation of jq.
We can use yum or dnf to install gojq on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install gojq.
Install gojq on Fedora 36 Using dnf
Update yum database with dnf using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install gojq using dnf by running the following command:
sudo dnf -y install gojq
Install gojq on Fedora 36 Using yum
Update yum database with yum using the following command.
sudo yum makecache --refresh
After updating yum database, We can install gojq using yum by running the following command:
sudo yum -y install gojq
How To Uninstall gojq on Fedora 36
To uninstall only the gojq package we can use the following command:
sudo dnf remove gojq
gojq Package Contents on Fedora 36
/usr/bin/gojq
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/3724623d3fc681f4dfdbd82afdd4d7a37502f3
/usr/share/doc/gojq
/usr/share/doc/gojq/CHANGELOG.md
/usr/share/doc/gojq/README.md
/usr/share/licenses/gojq
/usr/share/licenses/gojq/LICENSE
References
Summary
In this tutorial we learn how to install gojq on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).