Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Upgrading jq to 1.5 on Ubuntu

So it reads here:

jq 1.5 is in the official Debian and Ubuntu repositories. Install using sudo apt-get install jq.

yet:

$ sudo apt-get install jq Reading package lists... Done Building dependency tree        Reading state information... Done jq is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 

AND:

$ jq --version jq version 1.3  Description:    Ubuntu 14.04 LTS Release:    14.04 Codename:   trusty 

What am I missing?

thanks

like image 588
programbyexception Avatar asked Apr 06 '16 21:04

programbyexception


People also ask

How install jq 1.5 Linux?

jq 1.5 is in the official Debian and Ubuntu repositories. Install using sudo apt-get install jq. yet: $ sudo apt-get install jq Reading package lists...

What is jq Ubuntu?

jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed , awk , grep and friends let you play with text. jq is written in portable C, and it has zero runtime dependencies.


1 Answers

I ended up here when googling on why my Debian 8 instance does not upgrade jq 1.4 to 1.5.

Here's my solution for anyone struggling with Debian 8 jq: Download jq from https://github.com/stedolan/jq/releases and copy it manually over the currently installed jq. In my case:

wget https://github.com/stedolan/jq/releases/download/jq-1.5/jq-linux64 chmod +x jq-linux64 sudo mv jq-linux64 $(which jq) 
like image 178
Juuso Ohtonen Avatar answered Sep 25 '22 01:09

Juuso Ohtonen