How to Update Chrome Browser?

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
sonny
Posts: 626
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 454 times
Been thanked: 144 times

How to Update Chrome Browser?

Post 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.

dancytron
Posts: 663
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 441 times
Been thanked: 192 times

Re: How to Update Chrome Browser

Post 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.

sonny
Posts: 626
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 454 times
Been thanked: 144 times

Re: How to Update Chrome Browser

Post 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!

dancytron
Posts: 663
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 441 times
Been thanked: 192 times

Re: How to Update Chrome Browser

Post 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.

sonny
Posts: 626
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 454 times
Been thanked: 144 times

Re: How to Update Chrome Browser

Post 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.

dancytron
Posts: 663
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 441 times
Been thanked: 192 times

Re: How to Update Chrome Browser

Post 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.

sonny
Posts: 626
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 454 times
Been thanked: 144 times

Re: How to Update Chrome Browser

Post 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/

User avatar
666philb
Posts: 429
Joined: Thu Jul 09, 2020 3:18 pm
Location: wales uk
Has thanked: 111 times
Been thanked: 146 times

Re: How to Update Chrome Browser

Post 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 "
sonny
Posts: 626
Joined: Mon Feb 15, 2021 4:50 pm
Has thanked: 454 times
Been thanked: 144 times

Re: How to Update Chrome Browser

Post 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!

sansonet
Posts: 6
Joined: Mon Jan 04, 2021 2:53 pm
Has thanked: 3 times

Re: How to Update Chrome Browser?

Post 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?

Post Reply

Return to “Users”