LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   latest-chrome.sh problem (ruario) (https://www.linuxquestions.org/questions/slackware-14/latest-chrome-sh-problem-ruario-4175574520/)

dsotm 03-10-2016 10:43 AM

latest-chrome.sh problem (ruario)
 
It's telling me it can't work out the current stable version of Chrome, I'd try and fix the script myself but I have no idea how... still working for anyone else?

kazzan 03-10-2016 11:40 AM

Hi, I believe Chrome 32-bit is no longer supported on Linux.
If you're using a 64-bit system you could apply this patch:

Code:

--- latest-chrome        2016-03-10 18:26:35.923064578 +0100
+++ latest-chrome-fix        2016-03-10 18:27:26.114068079 +0100
@@ -56,7 +56,7 @@
 fi
 
 # Work out the latest stable Google Chrome if VERSION is unset
-VERSION=${VERSION:-$(wget -qO- https://dl.google.com/linux/direct/google-chrome-stable_current_i386.rpm | head -c96 | strings | rev | awk -F"[:-]" '/emorhc/ { print $1 "-" $2 }' | rev)}
+VERSION=${VERSION:-$(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)}
 
 # Error out if $VERISON is unset, e.g. because previous command failed
 if [ -z $VERSION ]; then


ruario 03-10-2016 02:22 PM

Sorry, fixed now. Also thanks kazzan for helping out.

ruario 03-10-2016 02:34 PM

I must admit, I never use the script myself as I only need Chrome for comparison with Vivaldi (or in the past Opera). Normally, I just grab the latest and run it in place like this:

Code:

$ wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
$ mkdir chrome
$ bsdtar xf google-chrome-stable_current_x86_64.rpm -C chrome
$ chrome/opt/google/chrome/chrome --user-data-dir=chrome/profile&

Then I delete chrome directory when I am done testing, which in turn removes the preferences/settings (stored as a subdirectory) and returns my system to a clean state.

On Windows and Mac I do a variant of the same, so I never really have Chrome "installed" on any of my systems. :p

bassmadrigal 03-10-2016 03:56 PM

Well, for those of us who do install Chrome, we do really appreciate your script(s). It has saved a great amount of time!

ruario 03-10-2016 04:18 PM

It sometimes amuses me that my only two (very minor) contributions to the Slackware community are scripts that simplify fetching and repacking Firefox and Chrome into Slackware format, while the entire time I have been active on these forums I have worked for either Opera or Vivaldi. ;)

ruario 03-10-2016 04:21 PM

I see I am also still listed as a contributor to the Archlinux Google Chrome PKGBUILD as well. :D

https://aur.archlinux.org/cgit/aur.g...=google-chrome

In case you are curious, that snippet in the comments near the top for checking the versions is me, i.e.:

Code:

curl -s https://dl.google.com/linux/chrome/rpm/stable/x86_64/repodata/other.xml.gz | zcat | awk -F\" '/pkgid/{ sub(".*-","",$4); print $4": "$10 }'
I worked that out back in 2012 and suggested it shortly after. Nice to see I am still a "contributor", despite this tiny effort. ;)

dsotm 03-10-2016 09:49 PM

Quote:

Originally Posted by ruario (Post 5513470)
It sometimes amuses me that my only two (very minor) contributions to the Slackware community are scripts that simplify fetching and repacking Firefox and Chrome into Slackware format, while the entire time I have been active on these forums I have worked for either Opera or Vivaldi. ;)

More than I can do myself and quite appreciated :D

bassmadrigal 03-10-2016 09:51 PM

Quote:

Originally Posted by ruario (Post 5513470)
It sometimes amuses me that my only two (very minor) contributions to the Slackware community are scripts that simplify fetching and repacking Firefox and Chrome into Slackware format, while the entire time I have been active on these forums I have worked for either Opera or Vivaldi. ;)

There's plenty of other contributions you've done in this forum. Just because those two scripts are common downloaded things doesn't negate your other help provided on the forum (and likely elsewhere, although, I'm just not aware of it).


All times are GMT -5. The time now is 04:00 AM.