请访问原文链接:如何禁用 Google Chrome 自动更新 (macOS, Windows) ,查看最新版。转载请保留出处。
作者:gc(at)sysin.org,主页:www.sysin.org
如何禁用 Mozilla Firefox 自动更新 如何禁用 Microsoft Edge 自动更新 如何禁用 Google Chrome 自动更新
未经用户允许自动更新,也不提供选项禁用自动更新,属实不文明不举,以下方法可以禁用自动更新。
Google Chrome for Windows Google Chrome 如何自动更新? 当前以 Chrome 88.0 版本为例,新版本将来可能有所变更:
企业版使用以下方法进行自动更新
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 更新服务: Google 更新服务 (gupdate) Google 更新服务 (gupdatem) Google Chrome Elevation Service (GoogleChromeElevationService) 任务计划: GoogleUpdateTaskMachineCore GoogleUpdateTaskMachineUA 安装路径: x64 C:\P rogram Files\G oogle\C hrome\A pplication\c hrome.exe x86 C:\P rogram Files (x86)\G oogle\C hrome\A pplication\c hrome.exe GoogleUpdate.exe 路径: x64 和 x86 版本相同 C:\P rogram Files (x86)\G oogle\U pdate\G oogleUpdate.exe
用户版不带自动更新程序
1 2 用户版安装路径: C:\U sers\用 户名\A ppData\L ocal\G oogle\C hrome\A pplication\c hrome.exe
使用 PowerShell 禁用更新 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 if ([Environment ]::Is64BitOperatingSystem -eq “True”) { $PF =$ {env:ProgramFiles(x86)} } else { $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 Stop-Service -Name "gupdate" Stop-Service -Name "gupdatem" Stop-Service -Name "GoogleChromeElevationService" 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 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 Stop-Service -Name "gupdate" Stop-Service -Name "gupdatem" Stop-Service -Name "GoogleChromeElevationService" 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 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!" }
效果图:
Google Chrome for Mac Google Chrome 如何自动更新? 通过以下进程:
1 2 3 4 ~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/GoogleSoftwareUpdateAgent.app~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/GoogleSoftwareUpdateAgent.app via ~/ Library/Google/ GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/ Contents/Helpers/ ksfetch/Applications/ Google Chrome.app via ~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/ksfetch~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/ksfetch
访问 Google 相关域名检测并下载更新。
1 2 tools .google .com #主要update .googleapis .com #某些版本适用
解决方案:
屏蔽进程网络访问
删除进程并禁止重新生成
hosts 屏蔽相关域名
禁用自动更新一般步骤 1.删除和设置权限
打开终端执行如下命令:
1 2 3 4 5 cd ~/Library/Google/GoogleSoftwareUpdate rm -rf GoogleSoftwareUpdate.bundle cd ~/Library/Google sudo chown root:wheel GoogleSoftwareUpdate
2.编辑 hosts 文件,添加如下内容:
手动编辑,打开终端,执行:sudo vi /etc/hosts
,或者使用 SwitchHosts! (免费软件)
1 2 127.0.0.1 update.googleapis.com127.0.0.1 tools.google.com
以上两步任意一个已经可以屏蔽自动更新,同时操作更加保险。
3.或者(或同时)使用防火墙软件屏蔽:
推荐 Little Snitch ,这是一个商业软件
分别新建规则,屏蔽以下进程访问网络:
1 2 3 4 ~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/GoogleSoftwareUpdateAgent.app~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/GoogleSoftwareUpdateAgent.app via ~/ Library/Google/ GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/ Contents/Helpers/ ksfetch/Applications/ Google Chrome.app via ~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/ksfetch~/Library/ Google/GoogleSoftwareUpdate/ GoogleSoftwareUpdate.bundle/Contents/ Helpers/ksfetch
Process Name:上述进程名
Deny Outgoing Connections
To: Any Server
效果图:
资源 Google Chrome 策略配置
Google Chrome 下载
备注:Chrome 内置多国语言界面。
macOS 最新稳定版固定下载地址 Chrome for macOS with Intel chip
Chrome for macOS with Apple chip
Linux 最新稳定版固定下载地址 Chrome for Linux – deb
Chrome for Linux – rpm
Windows System Setup 最新稳定版固定下载地址 (安装在 Program Files 文件夹下,需要管理员权限安装)
Google Chrome System Setup x86 - 32bit
Google Chrome System Setup x64 - 64bit
Windows User Setup (安装在 Users 文件夹下) 查看最新版:https://tools.shuax.com/chrome/
Windows 版固定下载地址(需要文明访问) If you want to install Google Chrome for single user account:
Download Google Chrome Offline Installer (32-bit)
Download Google Chrome Offline Installer (64-bit)
If you want to install Google Chrome for all user accounts:
Google Chrome Offline Installer for All User Accounts (32-bit)
Google Chrome Offline Installer for All User Accounts (64-bit)
Download Full Offline Windows Installer (MSI) of Google Chrome:
Download Google Chrome MSI Installer for Windows
Download Google Chrome MSI Installer for Windows (Alternative Link)
如果文章中使用的内容和图片侵犯了您的版权,请联系作者删除。如果您喜欢这篇文章或者觉得它对您有用,欢迎您发表评论,也欢迎您分享这个网站,或者赞赏一下作者,谢谢!