Skip to main content

I have just written a blog post on how to automatically update Google Chrome using Jamf if anyone is interested. You can find my blog post here:



https://lew.im/2017/03/auto-update-chrome/

I have seen a few different methods posted here, but most require some admin intervention (uploading new packages, changing version numbers etc.) but this method is fully automated. Create the Extension Attribute, Smart Group and Policy and you're good to go! Every time Google release a new version of Chrome, this script will automatically grab it and install it on your Macs.

@LewisLebentz Thank you!!!! Any tips on Zero touch deploy?


the script still looks to be working well.

Dumb question, this script will enable a device running chrome and is an older version to update.

I understand the smart group and the extension attribute inclusion to achieve this. 

I just wanted to verify my thinking. 

Thank you for all the hard work!


Does anyone have an updated download link for Chrome? 
https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmg is downloading 98.0.4758.102 instead of the current version (106.0.5249.61 at the time of this post).


Will this work with the m1 devices? Also I see it is python below the shebang but I thought macs used python3. No?


I found that when I ran the following script on an M1 device I was able to attain the chrome version 106.x.x.x and not downgraded to v98.x.x.x

I have not tested it on an Intel Mac yet but will. Tonight I tested this on 2 devices, wiping them and letting them instal version 104... then ran this script about a dozen times with great results each time!

#!/bin/sh

dmgfile="googlechrome.dmg"
volname="Google Chrome"
logfile="/Library/Logs/GoogleChromeInstallScript.log"

url='https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg'

#url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmgThis url goes to a downgraded chrome version 98.x.x.x, so it is commented out.


/bin/echo "--" >> ${logfile}
/bin/echo "`date`: Downloading latest version." >> ${logfile}
/usr/bin/curl -s -o /tmp/${dmgfile} ${url}
/bin/echo "`date`: Mounting installer disk image." >> ${logfile}
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet
/bin/echo "`date`: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${volname}/Google Chrome.app" "/Applications/Google Chrome.app"
/bin/sleep 10
/bin/echo "`date`: Unmounting installer disk image." >> ${logfile}
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${volname}" | awk '{print $1}') -quiet
/bin/sleep 10
/bin/echo "`date`: Deleting disk image." >> ${logfile}
/bin/rm /tmp/"${dmgfile}"

exit 0


I found that when I ran the following script on an M1 device I was able to attain the chrome version 106.x.x.x and not downgraded to v98.x.x.x

I have not tested it on an Intel Mac yet but will. Tonight I tested this on 2 devices, wiping them and letting them instal version 104... then ran this script about a dozen times with great results each time!

#!/bin/sh

dmgfile="googlechrome.dmg"
volname="Google Chrome"
logfile="/Library/Logs/GoogleChromeInstallScript.log"

url='https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg'

#url='https://dl.google.com/chrome/mac/stable/GGRO/googlechrome.dmgThis url goes to a downgraded chrome version 98.x.x.x, so it is commented out.


/bin/echo "--" >> ${logfile}
/bin/echo "`date`: Downloading latest version." >> ${logfile}
/usr/bin/curl -s -o /tmp/${dmgfile} ${url}
/bin/echo "`date`: Mounting installer disk image." >> ${logfile}
/usr/bin/hdiutil attach /tmp/${dmgfile} -nobrowse -quiet
/bin/echo "`date`: Installing..." >> ${logfile}
ditto -rsrc "/Volumes/${volname}/Google Chrome.app" "/Applications/Google Chrome.app"
/bin/sleep 10
/bin/echo "`date`: Unmounting installer disk image." >> ${logfile}
/usr/bin/hdiutil detach $(/bin/df | /usr/bin/grep "${volname}" | awk '{print $1}') -quiet
/bin/sleep 10
/bin/echo "`date`: Deleting disk image." >> ${logfile}
/bin/rm /tmp/"${dmgfile}"

exit 0


Do you know if https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg will continue to have the latest Chrome version or will the link need to be updated everytime?


Do you know if https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg will continue to have the latest Chrome version or will the link need to be updated everytime?


@kbednar  I found that link url='https://dl.google.com/chrome/mac/universal/stable/CHFA/googlechrome.dmg' works, however it said that it could not update. 
But it does work after the user selects Enable Automatic updates in the Pop-up (drop-Down) window that appears.