Get Latest Google Chrome's Version Number Using Command Line

Download XMLStarlet(~1.5 MB) and Curl

Create a new file, query.xml and insert

<?xml version="1.0" encoding="UTF-8"?>
<request protocol="3.0" ismachine="1">
   <os platform="win" version="6.1" sp="" arch="x86" />
   <app appid="{4DC8B4CA-1BDA-483E-B5FA-D3C12E15B62D}" ap="-multi-chrome" brand="GGLS">
      <updatecheck />
   </app>
</request>

Run both Curl and XMLStarlet commands:

$ curl -X POST -d @query.xml https://tools.google.com/service/update2 > response.txt
$ xml sel -t -m //manifest -v @version -n response.txt

output

27.0.1453.94
comments powered by Disqus