jq command not found - Amazon Linux
How to Install jq Command on Amazon Linux
If you are using Amazon Linux and trying to use the jq
command but getting a “command not found” error, it means that the jq
command is not installed on your system.
What is jq?
jq
is a lightweight and flexible command-line JSON processor. It allows you to parse, filter, and manipulate JSON data easily in the terminal.
Installation on Amazon Linux
To install jq
on Amazon Linux, you can use the following command:
sudo yum install jq
If the above command does not work, it might be because the jq
package is not available in the default repositories of Amazon Linux.
Solution
You can download the jq
binary directly from the official website and install it manually. Follow these steps:
- Visit the jq releases page on GitHub.
- Download the appropriate binary for your system. For Amazon Linux, you can choose the Linux 64-bit version.
- Extract the downloaded file and move the
jq
binary to a directory included in your system’s PATH, such as/usr/local/bin
.
After following these steps, you should be able to use the jq
command on your Amazon Linux system.
Conclusion
In this tutorial, you learned how to install the jq
command on Amazon Linux. By following the provided steps, you can now work with JSON data more efficiently using the jq
command in your terminal.