I want to stop updating Google Chrome automatically.

Asked 1 years ago, Updated 1 years ago, 83 views

environment
macOS high sierra
Google Chrome 86.0.4240.80 (Official Build) (x86_64)

Reason
I'm using selenium and it's hard to install webdriver every time the version changes, so I'd like to stop updating Chrome automatically.

What I tried
Using the following site as a reference, we took the method of setting the update interval to zero in defaults write com.google.Keystone.Agent checkInterval0.

[Mac version] How to stop auto-updating Google Chrome

However, the chrome was updated because this setting didn't work.
When I checked com.google.Keystone.Agent.plist in user/library/preferences, there was no value for checkInterval.Perhaps the above method is no longer available.

So I searched and found the official help page.

Manage Chrome Updates (Mac)-Google Chrome Enterprise Help

I copied com.google.Keystone.plist to VScode and moved it to the Preferences folder, but when I restart my computer, the file is deleted.
I'm not sure if it works by pasting it with VScode.It was written in the official procedure that XML can be encoded, but I don't think it's a problem because XML can be used in a text editor, but I'm not familiar with that, so I don't know.

add
I found a way to block url access for updates on International StackExchange, but I'm not sure why it works after reading the shell script.
Other ways I thought it was better than changing access rights and deleting files, but I don't know how it works, so I'm afraid to do it.

code

#!/bin/sh

sudo tee-a/etc/hosts<<EOF
# Block Google Chrome auto-update
0.0.0.0 tools.google.com
EOF

10/23 Additional 2
Executed the above code to add , 0, 0, 0 tools.google.com to /etc/hosts.This means that typing tools.google.com translates to 0.0.0.0, such as 127.0.0.1 localhost.When I checked the update, I fetched tools.google.com, so I thought I couldn't update it if I blocked it, but I was able to check the update normally, so the url above may no longer be used.

Try the method on this site and it's the fifth
I also tried Change the auto update URL (Mac), but my Google account has stopped synchronizing.If you look at googlechrome, there is no error and it says it's the latest version, so it doesn't look like it's working as expected.

Please let me know if you know more.

macos google-chrome selenium

2022-09-30 13:59

1 Answers

You may want to install and use Chrome instead of Chrome.

Chrome is based on Chromium source code, so both are basically the same, but Chromium eliminates Google brands (e.g., logos) and automatic updates.

Chromium-Wikipedia

Some of the most important feature elements in Chrome that are not in Chrome are Google Brand, Auto Update, and (abbreviated below)

As the source code is published, various builds are being distributed.

Chromium for Mac
Download latest stable chromium binaries (64-bit and 32-bit)

You will need to explicitly specify the Chromium PATH when using it from Selemium.

I want to work with Chromium in Selenium - teratail

def_init__(self):
    self.options=Options()
    self.options.binary_location='PATH in Chromium'
    self.browser=webdriver.Chrome (executable_path='Chromedriver.exe PATH', options=self.options)


2022-09-30 13:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.