I am trying to install jq JSON parser on amazon instance, unfortunately, i'm not able to install it can someone guide me.
            Asked
            
        
        
            Active
            
        
            Viewed 3.9k times
        
    2 Answers
60
            jq is available in the yum repo so run the following
sudo yum install jq
will install jq on the instance
 
    
    
        Frederic Henri
        
- 51,761
- 10
- 113
- 139
- 
                    3Sadly currently (Feb 2022) this will install 1.5 (released in 2015) rather than 1.6 (released in 2018) despite that being 4 years old already. – mjaggard Feb 07 '22 at 14:45
- 
                    Even if you install it you get this: -bash: /usr/local/bin/jq: cannot execute binary file – Lalle Jun 30 '23 at 11:23
10
            
            
        Tried yum install jq on RHEL but did not work as this package is not there..However following commands made the JQ available on my RHEL machine on AWS...
wget -O jq https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
chmod +x ./jq
cp jq /usr/bin
 
    
    
        Abhishek Jain
        
- 3,815
- 2
- 26
- 26
 
    