LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 03-16-2013, 03:47 PM   #1
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
How to find out the currently available version of Google-Chrome?


Hello,

I'm using Google-Chrome built with the Slackbuildscript in extra. When I want to download Google-Chrome I cannot see which version it is because the name of the downloadfile is always "google-chrome-stable_current_x86_64.txz" without a version-number.

One can see the version not before the new package is built.

My question is: is it possible to find out which version of google-chrome is currently available before downloading it.

Markus
 
Old 03-16-2013, 03:58 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 3,955

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
It's written in the SlackBuild. Once you have downloaded the .deb, do this:
Code:
VERSION=$(ar p google-chrome-${RELEASE}_current_${DEBARCH}.deb control.tar.gz 2> /dev/null | tar zxO ./control 2> /dev/null | grep Version | awk '{print $2}' | cut -d- -f1)
echo "The version is $VERSION"
EDIT: ATM $RELEASE=current

Last edited by Didier Spaier; 03-16-2013 at 04:11 PM. Reason: EDIT added
 
Old 03-16-2013, 04:03 PM   #3
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Original Poster
Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Hi Didier,

yes I know this, but I want to know the version-number before downloading the file. I have sometimes only Internet-access via UMTS and then it is too cumbersome to download the whole package of about 27 MB and then find out that it's the same version as the already installed one.

Markus
 
Old 03-16-2013, 04:08 PM   #4
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 3,955

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Unhappy

Hi Markus

Sorry then, no clue.

Last edited by Didier Spaier; 03-16-2013 at 04:10 PM.
 
Old 03-16-2013, 04:22 PM   #5
imitis
Member
 
Registered: Oct 2007
Location: Latvia, Liepaja
Distribution: Slackware, Ubuntu
Posts: 39

Rep: Reputation: 3
I use script i found here on LQ

Code:
#!/bin/sh

if [ -x /usr/bin/google-chrome ]; then
  CURVERSION=$(google-chrome --version | awk '{print$3}')
  echo "Google Chrome $CURVERSION is installed."
else
  CURVERSION=UNKNOWN
  echo "Could not detect an installed version of Google Chrome"
fi

case "$(uname -m)" in
  i?86) DEBARCH="i386";;
  x86_64) DEBARCH="amd64";;
  *) echo "Package for $(uname -m) architecture is not available." ; exit 1 ;;
esac

if ! curl -fs https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-${DEBARCH}/Packages.gz -o /tmp/google-packages-list.gz; then
  echo "Could not connect to the Google repository to check the latest version"
  exit 1
fi

NEWVERSION=$(zcat /tmp/google-packages-list.gz | awk -F "[ -]" '/Package: google-chrome-stable/{getline;print$2}')

if [ "${CURVERSION}" = "${NEWVERSION}" ]; then
  echo "You appear to have the latest version of Google Chrome already."
else
  echo "Downloading Google Chrome ${NEWVERSION}."
  curl -O https://dl.google.com/linux/direct/google-chrome-stable_current_${DEBARCH}.deb
fi
 
1 members found this post helpful.
Old 03-16-2013, 04:37 PM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-14.1 on a Lenovo T61 6457-4XG
Posts: 3,955

Rep: Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936Reputation: 936
Maybe you could follow this blog.

The information given for the stable releases seems accurate as I just downloaded version 25.0.1364.173 released yesterday.

Also, if you go to chrome://chrome/, in addition to displaying the installed version you could be informed of an available update (I wrote "could" because I'm not sure that it works for the Linux versions).

Last edited by Didier Spaier; 03-16-2013 at 04:57 PM. Reason: Last paragraph added
 
1 members found this post helpful.
Old 03-16-2013, 05:02 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Original Poster
Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
Quote:
Originally Posted by Didier Spaier View Post
Maybe you could follow this blog.
yup, that's it, I'll bookmark this page. Thanks for the link.

Quote:
...
The information given for the stable releases seems accurate as I just downloaded version 25.0.1364.173 released yesterday.

Also, if you go to chrome://chrome/, in addition to displaying the installed version you could be informed of an available update (I wrote "could" because I'm not sure that it works for the Linux versions).
I thinks this works only if "automatic updates" is configured, but not with fixed versions. They say (Chrome FAQ) that then there is shown a little arrow at the menu-symbol (right hand at the top of the chrome-window).

Markus
 
Old 03-16-2013, 05:48 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,970

Original Poster
Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
@imitis: thanks, such a script was what I'm searching for. Could you please provide a link to the thread here at LQ where the script was first posted?

Markus
 
Old 03-17-2013, 07:10 AM   #9
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,787

Rep: Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799
http://www.linuxquestions.org/questi...ml#post4564661

I provide a better option at the end.

also read

http://my.opera.com/ruario/blog/2012...ersion-numbers
 
2 members found this post helpful.
Old 03-17-2013, 08:49 AM   #10
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,787

Rep: Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799
http://omahaproxy.appspot.com/ if you just want a page to quickly see what the latest versions of Chrome are. Of course I found out about this after my little rant. Still not sure how well known this is. The page should be more prominent!
 
Old 03-17-2013, 09:03 AM   #11
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,787

Rep: Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799Reputation: 799
Quote:
Originally Posted by markush View Post
I thinks this works only if "automatic updates" is configured, but not with fixed versions. They say (Chrome FAQ) that then there is shown a little arrow at the menu-symbol (right hand at the top of the chrome-window).

Markus
Only on Windows and Mac because the update systems used on Linux are APT or YUM. So you get zero notification on distros that don't use these. Google consider this OK as distros that don't use these update methods are considered unsupported in any case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Chrome New Tab Page (!)= Chrome OS Desktop Kenny_Strawn Linux - General 6 02-19-2011 05:36 PM
[SOLVED] This there a Slackware version of Google Chromium Browser? (not Google Chrome) Robert.Thompson Slackware 6 01-13-2011 05:27 AM
LXer: As Goes Chrome OS, So Goes Google's Chrome Browser LXer Syndicated Linux News 4 10-09-2010 03:18 PM
LXer: Google Chrome Automatically Installs Google Repository in Ubuntu LXer Syndicated Linux News 3 05-07-2010 11:20 AM
LXer: Javascript: Pre-version of Mozilla Firefox holds up against Google Chrome LXer Syndicated Linux News 0 09-04-2008 09:50 PM


All times are GMT -5. The time now is 12:54 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration