首页 > 其他分享 >Google Chrome 自动更新 关闭

Google Chrome 自动更新 关闭

时间:2023-09-18 11:37:55浏览次数:36  
标签:Google Chrome chrome exe Windows 自动更新

更新日期:Sat Sep 03 2022 20:20:00 GMT+0800,阅读量: 10847

请访问原文链接:如何禁用 Google Chrome 自动更新 (macOS, Linux, Windows),查看最新版。原创作品,转载请保留出处。

作者主页:sysin.org


禁用浏览器自动更新系列文章:

不同于 Firefox 官方提供了禁用自动更新的配置功能,Google Chrome 及基于其开源版本 Chromium 实现的衍生浏览器【国外各种(Microsoft Edge 等),国产各种…】不仅没有禁用自动更新的配置,而且是强制自动更新如同病毒病毒肆虐一般难以控制,非常不尊重用户。即使我们使用变通方法屏蔽了自动更新,它们竟然还会不停的提示软件已经过期。

适用的版本

本文写作时以 Chrome 88 版本为例,验证到 105 版本可用,不排除新版本将来可能有所变更。

如果方法失效,欢迎反馈,笔者将及时修正和更新,谢谢!

Google Chrome for Linux

官方发行的 deb 和 rpm 包是不带更新功能的,通过第三方 repo 安装的 Chrome 通常会通过软件包管理进行更新。

通过软件包管理禁用自动更新

Linux 软件更新通常依赖于系统级别的包管理机制(例如 apt 和 yum),我们可以手动来控制是否更新。

Chrome 稳定版在 Linux 中的软件包名称为:google-chrome-stable

在 Debian 及衍生系统中禁用 Chrome 更新:

sudo apt-mark hold google-chrome-stable
# 恢复
#sudo apt-mark unhold google-chrome-stable

在 Redhat 及衍生系统中禁用 Chrome 更新:

echo 'exclude=google-chrome-stable' >> /etc/yum.conf
# 恢复
#编辑 /etc/yum.conf 删除 exclude=google-chrome-stable

通过策略禁用更新

以下直接引用官方文档,有兴趣可以自行测试。

Step 1: Turn off Chrome browser updates

To stop Chrome browser auto-updating, take one of the following actions:

  • Create an empty repository before installing Chrome browser:
    $ sudo touch /etc/default/google-chrome
  • Add the following line to /etc/default/google-chrome:
    repo_add_once=false

Step 2: Turn off Chrome browser component updates (Optional)

Applies only to Chrome browser components.

Even if you turn off automatic updates for Chrome browser, browser components won’t automatically stop updating, including Widevine DRM (for encrypted media) and the Chrome updater recovery component. If you want to stop these components from updating, disable the Chrome ComponentUpdatesEnabled policy.

Using your preferred JSON file editor:

  1. In your etc/opt/chrome/policies/managed folder, create a JSON file and name it component_update.json.

  2. Add the following setting to the JSON file to turn off component updates:

{
"ComponentUpdatesEnabled": "false"
}
  1. Deploy the update to your users.

Google Chrome for Windows

Chrome for Windows 如何自动更新?

本文写作时以 Chrome 88 版本为例,100 版本测试任务计划名称有所变化,现在已经验证到 105 版本可用,不排除新版本将来可能有所变更。

Chrome 在 Windows 平台同时发布三个个版本,分别是:

  • 系统版(为所有用户安装)即 Windows System Setup,安装在 Program Files 文件夹下,需要管理员权限安装;
  • 企业版与上述系统版安装路径和权限要求是一样的,区别在于不是 exe 文件而是 msi 格式的安装包,msi 格式可以用于组策略部署;
  • 用户版即 Windows User Setup,安装在 Users 文件夹下,不需要管理员权限,普通用户就可以安装。

用户版不带自动更新程序,解压后是一个 7z 文件,即绿色版。

用户版主程序安装路径:
C:\Users\<用户名>\AppData\Local\Google\Chrome\Application\chrome.exe

系统版或者企业版使用以下方法进行自动更新

更新服务:
Google 更新服务 (gupdate)
Google 更新服务 (gupdatem)
Google Chrome Elevation Service (GoogleChromeElevationService)

任务计划:
GoogleUpdateTaskMachineCore
GoogleUpdateTaskMachineUA

新版的任务计划名称有所变化,原有名称都加上了随机字符串,例如:
GoogleUpdateTaskMachineCore{8A32A951-669F-4A7C-A7D0-F4169A5E59F0}
GoogleUpdateTaskMachineCore{8A32A951-669F-4A7C-A7D0-F4169A5E59F0}

主程序安装路径:
x64
C:\Program Files\Google\Chrome\Application\chrome.exe
x86
C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

更新程序 GoogleUpdate.exe 路径:
x64 和 x86 版本相同
C:\Program Files (x86)\Google\Update\GoogleUpdate.exe

根据上述路径,手动禁用或者删除即可禁用自动更新,即分别禁用或删除以下:

  • 更新服务
  • 任务计划
  • 删除更新程序(整个 Update 文件夹)

使用 PowerShell 禁用更新

打开 Windows PowerShell 直接复制以下脚本运行一下更加方便:

或者将脚本保存为 disable-chrome-auto-update.ps1 文件,右键点击 “使用 PowerShell 运行” 即可快速完成。

if ([Environment]::Is64BitOperatingSystem -eq "True") {
    #Write-Host "64-bit OS"
    $PF=${env:ProgramFiles(x86)}
}
else {
    #Write-Host "32-bit OS"
    $PF=$env:ProgramFiles
}

if ($(Test-Path "$env:ProgramFiles\Google\Chrome\Application\chrome.exe") -eq "true") {
    # 结束进程
    taskkill /im chrome.exe /f
    taskkill /im GoogleUpdate.exe /f
    # Google Chrome 更新服务 (sysin)
    #这里也可以使用 sc.exe stop "service name"
    Stop-Service -Name "gupdate"
    Stop-Service -Name "gupdatem"
    Stop-Service -Name "GoogleChromeElevationService"
    # Windows 10 默认 PS 版本 5.1 没有 Remove-Service 命令
    # This cmdlet was added in PS v6. See https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?view=powershell-6#cmdlet-updates.
    #Remove-Service -Name "gupdate"
    #Remove-Service -Name "gupdatem"
    #Remove-Service -Name "GoogleChromeElevationService"
    # sc 在 PowerShell 中是 Set-Content 别名,所以要使用 sc.exe 否则执行后无任何效果
    sc.exe delete "gupdate"
    sc.exe delete "gupdatem"
    sc.exe delete "GoogleChromeElevationService"
    # 任务计划企业版
    #schtasks.exe /Delete /TN \GoogleUpdateBrowserReplacementTask /F
    #schtasks.exe /Delete /TN \GoogleUpdateTaskMachineCore /F
    #schtasks.exe /Delete /TN \GoogleUpdateTaskMachineUA /F
    Get-ScheduledTask -taskname GoogleUpdate* | Unregister-ScheduledTask -Confirm: $false
    # 移除更新程序
    Remove-Item "$PF\Google\Update\" -Recurse -Force
    Write-Output "Disable Google Chrome Enterprise x64 Auto Update Successful!"
}
elseif ($(Test-Path "${env:ProgramFiles(x86)}\Google\Chrome\Application\chrome.exe") -eq "true") {
    # 结束进程
    taskkill /im chrome.exe /f
    taskkill /im GoogleUpdate.exe /f
    # 删除 Google Chrome 更新服务
    #这里也可以使用 sc.exe stop "service name"
    Stop-Service -Name "gupdate"
    Stop-Service -Name "gupdatem"
    Stop-Service -Name "GoogleChromeElevationService"
    # Windows 10 默认 PS 版本 5.1 没有 Remove-Service 命令,糟糕!
    # This cmdlet was added in PS v6. See https://docs.microsoft.com/en-us/powershell/scripting/whats-new/what-s-new-in-powershell-core-60?view=powershell-6#cmdlet-updates.
    #Remove-Service -Name "gupdate"
    #Remove-Service -Name "gupdatem"
    #Remove-Service -Name "GoogleChromeElevationService"
    # sc 在 PowerShell 中是 Set-Content 别名,所以要使用 sc.exe 否则执行后无任何效果
    sc.exe delete "gupdate"
    sc.exe delete "gupdatem"
    sc.exe delete "GoogleChromeElevationService"
    # 删除任务计划
    #schtasks.exe /Delete /TN \GoogleUpdateBrowserReplacementTask /F
    #schtasks.exe /Delete /TN \GoogleUpdateTaskMachineCore /F
    #schtasks.exe /Delete /TN \GoogleUpdateTaskMachineUA /F
    Get-ScheduledTask -taskname GoogleUpdate* | Unregister-ScheduledTask -Confirm: $false
    # 移除更新程序
    Remove-Item "$PF\Google\Update\" -Recurse -Force
    Write-Output "Disable Google Chrome Enterprise x86 Auto Update Successful!"
}
else {
    Write-Output "No Google Chrome Enterprise Installation Detected!"
}

组策略配置更新(仅适用于域客户端)

下载 administrative template,通过组策略部署,该方式适合企业域管理员,不再赘述。

下载 Chrome

Chrome 100 存档

Chrome 105 存档

Google Chrome 策略配置

Google Chrome 下载

备注:Chrome 内置多国语言界面。

Chrome macOS 最新稳定版固定下载地址

Chrome for macOS for Intel chip (已停止更新)

Chrome for macOS for Apple chip & Intel chip

Chrome Linux 最新稳定版固定下载地址

Chrome for Linux – deb

Chrome for Linux – rpm

Chrome Windows 最新版(3 种)下载地址

 


其他

做个笔记备份一下,其他文章参考上面的原文内容!

另外,上面的内容,我只验证了chrome win版本关闭自动更新的功能,一切正常。


 

标签:Google,Chrome,chrome,exe,Windows,自动更新
From: https://www.cnblogs.com/zjxcyr/p/17711405.html

相关文章

  • firefox自动更新关闭
    原文:更新日期:SatSep03202220:10:00GMT+0800,阅读量:4690请访问原文链接:如何禁用Firefox自动更新(macOS,Linux,Windows),查看最新版。原创作品,转载请保留出处。作者主页:sysin.org禁用浏览器自动更新系列文章:如何禁用Firefox自动更新(macOS,Linux,Windows)如何......
  • Ubuntu 22.04 安装Google chrome谷歌浏览器
    前言Ubuntu22.04LTS版本不会自带google浏览器,默认自带了Firefox浏览器。本文介绍如何使用Firefox浏览器下载Google浏览器。动作指导打开自带的Firefox浏览器输入网址:www.google.cn/intl/zh-CN/chrome,回车打开页面根据页面提示,下载deb版本的安装文件等待下载完成......
  • 接入Google认证Google Authenticator
    介绍既然来看该文章就应该知道Google的两步认证是干什么的,如果需要APP(GoogleAuthenticator)的可以私信我。验证原理讲解:为每个用户在注册之前生成32位随机码(该码一般会存入数据库)。调用API传入32位随机码,生成正确的6位验证码,每隔1分种会变化。根据用户输入的6位验证码和正......
  • 关闭win10自动更新
    win10系统自动更新有多烦相必不用我多说了,网上给出了关闭服务、关闭策略等方法,貌似是治标不治本,今天无意间看到b站一个视频讲这个,试了一下果然有效,所以贴在这里并且简单叙述一下。简单说一下步骤:1.调时间打开Windows设置,时间和语言->关闭"自动设置时间"开关,点"手动设置日......
  • public ::google::protobuf::Message
     public::google::protobuf::Messagefilelist继承..... .protomessageabc{requiredstringaa=1;optionalstringbb=4; }messageDeparts{repeatedabccc=1;......
  • selenium chrome: calenda time
    1. seleniumchrome:calendatime  Andinputcreatedtimefrom"2023-07-0117:19"@step('inputcreatedtimefrom"{Keyword}"')defstep_impl(context,Keyword):context.resourceCataloguePage.created_time_input_start_date(......
  • 将Google Analytics for Firebase数据导入BigQuery
    点击打开英文链接发送反馈解决方案将GoogleAnalyticsforFirebase数据导入BigQuery本教程介绍了如何将GoogleAnalyticsforFirebase中的事件日志导出到GoogleBigQuery中,以便深入分析数据。Firebase 是一个构建移动应用程序的平台,其中包括数据和文件存储,实时同步,身份验证等功......
  • 打开Chrome浏览器总是跳到其他浏览器导航??? 为你解决!!!
     用chrome浏览器把百度设为默认搜索引擎用起来很方便,但有时百度抽风,会自动跳转到百度首页,无限烦恼,发现了一个快速解决的办法,和大家共享我的解决方法:第一步:打开你桌面上谷歌的属性,打开文件所在位置 第二步:在文件夹所在的位置找到Chrome.exe,双击运行一下,如果如转到其他浏览器......
  • selenium4 请求chrome 如何添加header请求头
    前言selenium的webdriver本身没有api能做这个事情,详见issue。国内的博客全抄来抄去,说selenium直接加add_argument参数就好了,弄得找了好几天找代码问题,上外网查秒解决。所以要学好计算机还是得英文呐~~我用requests登录后,获取到了认证信息,但是接下来的请求我不再使用requests,而......
  • Chrome浏览器不提示保存密码的解决办法
    首先关闭浏览器,然后进入Chrome浏览器的数据存储文件夹【C:Users你的用户名AppDataLocalGoogleChromeUserDataDefault】删除【LoginData、LoginData-journal 】两个文件即可。原文链接:https://office.tqzw.net.cn/computer/computer/15621.html......