Page 1 of 1

How to Update Chrome Browser?

Posted: Sun May 23, 2021 11:00 pm
by sonny

Hello,
After installing Chrome browser from its website (64-bit.deb), how do I update it in the future? Firefox variants do the update automatically but Chromes.
Very much appreciated.


Re: How to Update Chrome Browser

Posted: Sun May 23, 2021 11:46 pm
by dancytron

Please tell us the exact version of puppy you are using.

If you installed it from the .deb, you can either hook your Puppy up to the Google Repository (very hard in older versions of puppy, probably easier now but someone else will have to tell you how) or you can just redownload the .deb file and reinstall it whenever you want to update. It is always the latest version.


Re: How to Update Chrome Browser

Posted: Sun May 23, 2021 11:54 pm
by sonny
dancytron wrote: Sun May 23, 2021 11:46 pm

Please tell us the exact version of puppy you are using.

If you installed it from the .deb, you can either hook your Puppy up to the Google Repository (very hard in older versions of puppy, probably easier now but someone else will have to tell you how) or you can just redownload the .deb file and reinstall it whenever you want to update. It is always the latest version.

Dancytron,
Thank you for your reply. It is very much appreciated.
I am running fossapup64.
Manual re-installation is fine, but uninstalling the older version prior to that is not very inspiring.
Is there any way to make a silent, auto, or unattended update for the browser?
Thanks again!


Re: How to Update Chrome Browser

Posted: Mon May 24, 2021 12:28 am
by dancytron

You don't have to uninstall the old version. Just install the new version on top of it.

The other choice is to hook your Puppy Program Manager (PPM) up to the Google Repo and upgrade it exactly like any other package in the Fossa repo. Someone else will be by to explain how that's done.


Re: How to Update Chrome Browser

Posted: Mon May 24, 2021 12:43 am
by sonny
dancytron wrote: Mon May 24, 2021 12:28 am

You don't have to uninstall the old version. Just install the new version on top of it.

The other choice is to hook your Puppy Program Manager (PPM) up to the Google Repo and upgrade it exactly like any other package in the Fossa repo. Someone else will be by to explain how that's done.

Chrome browser won't install until the older version is taken off.


Re: How to Update Chrome Browser

Posted: Mon May 24, 2021 1:01 am
by dancytron

Okay. That surprises me. I've done it on older versions of Puppy.

TBH, I answered because I know a lot about Chrome even though I don't know a lot about the latest Puppies.

Someone will be by to tell you have to integrate the Google Chrome repository.


Re: How to Update Chrome Browser

Posted: Mon May 24, 2021 1:08 am
by sonny
dancytron wrote: Mon May 24, 2021 1:01 am

Okay. That surprises me. I've done it on older versions of Puppy.

TBH, I answered because I know a lot about Chrome even though I don't know a lot about the latest Puppies.

Someone will be by to tell you have to integrate the Google Chrome repository.

This is the clue from google but dunno how to "translate" it in fossapup64 ...

https://www.google.com/linuxrepositories/


Re: How to Update Chrome Browser

Posted: Tue May 25, 2021 10:39 am
by 666philb

here's script to download/update google chrome

Code: Select all

#!/bin/sh
echo `google-chrome-stable --version` > /tmp/chroverold
oldversion=`cat /tmp/chroverold`
cd /
urxvt -e wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
yaf-splash -wrap false -bg lightgreen -border false -margin 0 -fg black -placement top -timeout 3 -text " installing "
dpkg-deb -x /google-chrome-stable_current_amd64.deb /
rm /google-chrome-stable_current_amd64.deb
rm /opt/google/chrome/google-chrome.bin
mv /opt/google/chrome/google-chrome /opt/google/chrome/google-chrome.bin
   echo '#!/bin/sh
   APP='/opt/google/chrome/google-chrome.bin'
#script to run $APP as spot...
ARGS=""
[ "$1" ] && while [ "$1" ]; do ARGS="$ARGS \"$1\""; shift; done
if [ $(id -u) -eq 0 ]; then
 [ $XAUTHORITY ] && cp $XAUTHORITY /root/spot/.Xauthority 2>/dev/null
 touch /root/spot/.Xauthority
 #following line is mostly there to catch any root:root files that may have got copied in...
 find /root/spot \( -not -user spot -or -not -group spot \) -exec chown -h spot:spot {} \; &
 export XAUTHORITY=/root/spot/.Xauthority  
 export XDG_CONFIG_HOME=/root/spot/.config
 export XDG_CACHE_HOME=/root/spot/.cache
 export XDG_DATA_HOME=/root/spot/.local/share
 exec su spot -s /bin/sh -c "\"$APP\" $ARGS"
else #precaution
 exec "$APP" "$ARGS"
fi' > /opt/google/chrome/google-chrome 
chmod 755 /opt/google/chrome/google-chrome
   echo '[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Google Chrome web browser
GenericName=Google Chrome
Comment=Google Chrome web browser
Exec=google-chrome-stable
Terminal=false
Type=Application
Icon=/opt/google/chrome/product_logo_128.png
Categories=WebBrowser;' > /usr/share/applications/google-chrome.desktop
chmod 755 /initrd/pup_rw
fixmenus
jwm -restart
echo `google-chrome-stable --version` > /tmp/chrover
version=`cat /tmp/chrover`
yaf-splash -wrap false -bg lightgreen -border false -margin 0 -fg black -placement top -text " $oldversion Updated to $version "

Re: How to Update Chrome Browser

Posted: Tue May 25, 2021 7:08 pm
by sonny
666philb wrote: Tue May 25, 2021 10:39 am

here's script to download/update google chrome

Code: Select all

#!/bin/sh
echo `google-chrome-stable --version` > /tmp/chroverold
oldversion=`cat /tmp/chroverold`
cd /
urxvt -e wget http://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
yaf-splash -wrap false -bg lightgreen -border false -margin 0 -fg black -placement top -timeout 3 -text " installing "
dpkg-deb -x /google-chrome-stable_current_amd64.deb /
rm /google-chrome-stable_current_amd64.deb
rm /opt/google/chrome/google-chrome.bin
mv /opt/google/chrome/google-chrome /opt/google/chrome/google-chrome.bin
   echo '#!/bin/sh
   APP='/opt/google/chrome/google-chrome.bin'
#script to run $APP as spot...
ARGS=""
[ "$1" ] && while [ "$1" ]; do ARGS="$ARGS \"$1\""; shift; done
if [ $(id -u) -eq 0 ]; then
 [ $XAUTHORITY ] && cp $XAUTHORITY /root/spot/.Xauthority 2>/dev/null
 touch /root/spot/.Xauthority
 #following line is mostly there to catch any root:root files that may have got copied in...
 find /root/spot \( -not -user spot -or -not -group spot \) -exec chown -h spot:spot {} \; &
 export XAUTHORITY=/root/spot/.Xauthority  
 export XDG_CONFIG_HOME=/root/spot/.config
 export XDG_CACHE_HOME=/root/spot/.cache
 export XDG_DATA_HOME=/root/spot/.local/share
 exec su spot -s /bin/sh -c "\"$APP\" $ARGS"
else #precaution
 exec "$APP" "$ARGS"
fi' > /opt/google/chrome/google-chrome 
chmod 755 /opt/google/chrome/google-chrome
   echo '[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Google Chrome web browser
GenericName=Google Chrome
Comment=Google Chrome web browser
Exec=google-chrome-stable
Terminal=false
Type=Application
Icon=/opt/google/chrome/product_logo_128.png
Categories=WebBrowser;' > /usr/share/applications/google-chrome.desktop
chmod 755 /initrd/pup_rw
fixmenus
jwm -restart
echo `google-chrome-stable --version` > /tmp/chrover
version=`cat /tmp/chrover`
yaf-splash -wrap false -bg lightgreen -border false -margin 0 -fg black -placement top -text " $oldversion Updated to $version "

JWtDO (Just What the Doctor Ordered).
Very much appreciated, Phil!


Re: How to Update Chrome Browser?

Posted: Mon Aug 21, 2023 6:58 pm
by sansonet

Great script - just found it and updated my Chrome without the usual hassle :thumbup2: :thumbup2: :thumbup2:
Is it possible to make one for Vivaldi too?