Google Chrome Linux 版本如何处理自动版本更新

发布于 2024-08-28 01:43:58 字数 212 浏览 14 评论 0 原文

有人能告诉我Chrome的Linux beta版如何使用debian包管理器进行自动版本更新吗?我需要在 Linux 上实现类似于我的应用程序的东西,这里提供的信息会有很多帮助。我目前正在查看 debian 控制包中的 postinst 脚本,我可以看到 Chrome 使用 PGP 发布/订阅模型来获取 Linux 中的自动版本更新。我只是清楚地了解它是如何运作的。任何帮助将不胜感激。

谢谢

Can some one tell me how the Chrome's Linux beta version carry out automatic version updation using debian package manager. I need to implement something similar to my application on linux and information provided here would be of lot of help. I am currently checking out the postinst script present in the debian control package and I can see Chrome uses PGP publish/subscribe model for getting automated version updates in Linux. I just clear understanding of how that works. Any help would be greatly appreciated.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你怎么这么可爱啊 2024-09-04 01:43:58

他们的脚本的主要内容是:

  1. 添加存储库密钥:

    apt-key add - <
  2. apt-config 变量中的 sources.list.d 目录的路径拼凑在一起 DirDir::EtcDir::Etc::sourceparts

  3. google-chrome.list 文件放置到位。

该脚本的其余部分大部分负责管理他们维护的存储库的多个版本,允许用户禁用它而不会生你的气,并优雅地处理禁用第三方存储库的操作系统升级。该脚本也会在日常 cron 作业中复制,主要用于最后一个用例。

我建议阅读脚本,理解它,然后修改它以满足您的需求,而不是尝试重写它。

请注意,此脚本仅确保存储库已启用。实际的升级留给用户和系统的更新通知程序。

The meat of their script is in:

  1. Adding the repository key:

    apt-key add - <<KEYDATA
    blah blah blah
    KEYDATA
    
  2. Piecing together the path to the sources.list.d directory from the apt-config variables Dir, Dir::Etc, and Dir::Etc::sourceparts.

  3. Dropping the google-chrome.list file into place.

Most of the rest of that script takes care of the multiple versions of repositories they maintain, allowing the user to disable it without getting pissed off at you, and gracefully handling an OS upgrade that disables third-party repos. The script is also duplicated in a daily cron job, mainly for that last use case.

I would recommend reading the script, understanding it, and then modifying it to suit your needs, rather than trying to rewrite it.

Note that this script only ensures that the repository is enabled. The actual upgrades are left to the user and the system's update notifier.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文