ænd*_*rük 24 upgrade automation google-chrome
安装 Google Chrome 会导致添加第三方软件源,可以从中检索 Google Chrome 升级:
$ cat /etc/apt/sources.list.d/google-chrome.list
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/chrome/deb/ stable main
$ head -n 9 /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_Release
Origin: Google, Inc.
Label: Google
Suite: stable
Codename: stable
Version: 1.0
Date: Tue, 04 Oct 2011 00:57:43 +0000
Architectures: i386 amd64
Components: main
Description: Google chrome-linux repository.
$ grep '^Package: ' /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages
Package: google-chrome-beta
Package: google-chrome-stable
Package: google-chrome-unstable
Run Code Online (Sandbox Code Playgroud)
如何从此存储库启用无人值守升级?
Bru*_*ira 41
安装无人值守升级:
sudo apt-get install unattended-upgrades
Run Code Online (Sandbox Code Playgroud)
通过编辑无人值守升级列表并在其中添加 Google Chrome 存储库,在 Google Chrome 存储库上启用无人值守更新:
sudo gedit /etc/apt/apt.conf.d/50unattended-upgrades
Run Code Online (Sandbox Code Playgroud)
添加"Google\, Inc.:stable";到允许的来源:
Unattended-Upgrade::Allowed-Origins {
"${distro_id} ${distro_codename}-security";
// "${distro_id} ${distro_codename}-updates";
// "${distro_id} ${distro_codename}-proposed";
// "${distro_id} ${distro_codename}-backports";
"Google LLC:stable";
};
Run Code Online (Sandbox Code Playgroud)
测试
使用sudo unattended-upgrade --dry-run测试,如果都挺清楚的,你应该是具有更新,而不需要您进行任何干预安装谷歌浏览器。
要在试运行后检查它是否正常工作,请跟踪日志:
cat /var/log/unattended-upgrades/unattended-upgrades.log
Run Code Online (Sandbox Code Playgroud)
你应该在你的日志中看到类似的内容:
2011-10-11 18:03:23,292 信息允许的来源是:['o=Ubuntu,a=oneiric-security', 'o=Google, Inc.,a=stable']
您可以通过编辑文件来更改无人值守更新/etc/apt/apt.conf.d/10periodic的配置,配置选项位于/etc/cron.daily/apt脚本标题中。阅读它们以配置无人值守更新的频率。
| 归档时间: |
|
| 查看次数: |
16840 次 |
| 最近记录: |