updating google chrome
Hello,
I am using google-chrome as a default browser. Because it is not part of stock Slackware (only found in extra), there are no official Slackware updates for it. So I regularly check for a new version of google-chrome and then run the SlackBuild on it. However, it is sometimes cumbersome to find out whether I am actually running the latest version, as version numbers are not explicitly part of the package name of the precompiled binaries. My question is, is there an easy straightforward way to find out whether the Chrome version I am running is the latest? I tried so far Help -> About Google Chrome, but only the version installed is written there, without any hint whether this is actually the latest version. Thank you very much for your attention. Best regards, Martin |
This script will be your best friend :) Although, I don't think it has a way to test if you're running the latest version without building a new package if you're not. You can also have it automatically install it with the -i option.
https://gist.github.com/ruario/9672759 |
Being that it's google try searching... eg: what is the latest version of google chrome ::: https://www.whatismybrowser.com/guid...version/chrome
|
Thank you all, this web site was all I needed.
@jamison20000e: Thanks a lot, I googled a lot but I could not find that page before you posted it to me here. |
Oddly, if you put "google chrome stable release" into google, it returns Linux-47.0.2526.106 at the top of the search results, which is clearly not the latest.
Personally, I keep an eye on https://googlechromereleases.blogspot.co.uk/ |
Quote:
Below is a commandline script to extract the version from the text in the page. Added ~/bin/get-latest-google-chrome to my Package Management 'arsenal' :) # run the script: Code:
bin/get-latest-google-chrome Code:
53.0.2785.101 Thanks again ! -- kjh # this is get-latest-google-chrome Code:
#!/bin/sh |
hmmm ...
Looking at rurio's script ( line 54 ), the version could be determined with a remote `rpm query` on the url ( which only downloads the rpm header ): Below is the output from the `rpm -qi -p <<URL>>` command and a script wrapper that constructs a Slackware Package Name from the rpm info header. I called the script get-latest-google-chrome. This is the command line and the output: Code:
# bin/get-latest-google-chrome -- kjh # check the rpm command Code:
rpm -qi -p https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm # This is one way to set the Slackware Package Name straight from the horses mouth ( google.com's rpm info header ): # # I called the script get-latest-google-chrome and then did: chmod 755 get-latest-google-chrome # Code:
#!/bin/sh |
Quote:
Code:
jbhansen@craven-moorhead:~$ wget -qO- https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm | head -c96 | strings | rev | awk -F"[:-]" '/emorhc/ { print $1 "-" $2 }' | rev |
Good call bassmadrigal !
I missed `... | head -c96 | ...` in ruario's pipeline. That would be even quicker than the `rpm -il -p <<URL>>` command ! Thanks for that ! I do like looking at the google site for the VERSION Setting since the 3rd party site could change or even 'disappear'. Thanks again. -- kjh |
In addition to my script, here is a one liner that I provided to the Chrome maintainer on Arch a few years back to quickly check the version numbers for all Chrome streams. It works by extracting the info from the RPM YUM/DNF repository:
Code:
wget -qO- https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zcat | awk -F\" '/pkgid/{ sub(".*-","",$4); print $4": "$10 }' |
Quote:
|
Quote:
Code:
wget -qO- https://dl.google.com/linux/chrome/deb/dists/stable/main/binary-amd64/Packages.gz | zcat | awk -F "[ -]" '/Package: google-chrome/{print $4":";getline;print $2}' https://web.archive.org/web/20140301...ersion-numbers I have since changed my stance somewhat, but the basis for all these tricks is there in the blog post and comments. ;) |
Quote:
I've been running slackware64/extra/google-chrome/google-chrome.SlackBuild since I installed this Laptop. After looking at your script, I may switch over to your's :) Thanks ruario ! -- kjh |
Quote:
Lot's to digest in your blog entry ! I'll take a look. One sentence that stood out is that you said that chromium and google-chrome are different beasts ( :) something like that :) ) Yes they are different beasts ! I've got both Alien Bob's chromium and google-chrome from Slackware's google-chrome.SlackBuild installed. I get Hardware Acceleration ( excluding the 'usual' exceptions for Linux ) with google-chrome but none at all for chromium ( 14.2 + Multilib + NVidia Blob ). Something to investigate one of these days ... -- kjh # # Playing ... Here is a modification of your command ( including your 'tag' that returns the package name as in /var/log/packages/google-chrome-* # Code:
# TAG=ro ; wget -qO- https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zcat | awk -F\" '/google-chrome-stable/{ print "google-chrome-" $10 "-" $6 "-" $12 "'"$TAG"'" }' # this is the same commandline, but for the Slackware64/extra/ version: # Code:
# TAG="" ; wget -qO- https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zcat | awk -F\" '/google-chrome-stable/{ print "google-chrome-" $10 "-" $6 "-" $12 "'"$TAG"'" }' # this format would make it easy to compare 'available' to 'installed' = $(basename "$(ls -1 /var/log/packages/google-chrome-*)") via a cronjob ... |
Quote:
|
All times are GMT -5. The time now is 03:04 PM. |