Install jq tool offline under linux
0.jq role
jq can format json data, or filter data slices according to a rule.
1. Download
Click here to download
Official website: https://stedolan.github.io/jq/
2. Installation
Upload the downloaded installation package to any place on linux
Then execute the following command to decompress, compile and install
tar -zxvf jq-1.5.tar.gz
cd jq-1.5
./configure && make && make install
3. Test
Enter the following command to test
echo '{"id":1,"name":"xhx"}' | jq .
For more jq usage tutorials: https://stedolan.github.io/jq/tutorial/
If you execute an error: curl: (1) Protocol “https” not supported or disabled in libcurl Check here
If an error is reported during execution: configure: error: You need bison version 3.0 or greater, or use --disable-maintainer-mode
execute during installation
./configure --disable-maintainer-mode && make && make install