How to install JQ on Linux?

First published: Friday, October 25, 2024 | Last updated: Friday, October 25, 2024

Discover how to install JQ on your Linux operating system to easily slice, filter, map, and transform JSON structured data.


What is JQ?

JQ is a lightweight and flexible command-line JSON processor akin to sed, awk, grep, and friends for JSON data. It’s written in portable C and has zero runtime dependencies, allowing you to easily slice, filter, map, and transform structured data.

Install JQ

To install JQ on a Linux-based operating system, the recommended approach is to download the executable binary and then install it. This method is considered best practice, regardless of the specific Linux distribution being used. After completing the installation, it’s important to verify the version of JQ to ensure that the installation was successful. Since JQ is just an executable binary, confirming the installed version is essential for validating the success of the installation process. For comprehensive instructions, I highly recommend consulting the JQ website.

AMD64 / X86-64 / X64

# Download JQ.
$ wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-amd64 -P /tmp

# Install JQ.
$ sudo mv /tmp/jq-linux-amd64 /usr/local/bin/jq
$ sudo chmod +x /usr/local/bin/jq

# Check JQ version.
$ jq --version

ARM64

# Download JQ.
$ wget https://github.com/jqlang/jq/releases/download/jq-1.7.1/jq-linux-arm64 -P /tmp

# Install JQ.
$ sudo mv /tmp/jq-linux-arm64 /usr/local/bin/jq
$ sudo chmod +x /usr/local/bin/jq

# Check JQ version.
$ jq --version

Logo of SloopStash organization.

Interested in our products, open source works, training, or solutions?

Just send us a message, we're here to support you. Feel free to reach out anytime for assistance.


Contact us