当前位置: 首页>>技术问答>>正文


Ubuntu何时会包含增量更新?

,

问题描述

我厌倦了下载300mb的更新。自XP以来,Windows已完成增量更新。如果包的几个部分发生变化,下载整个内容真是太傻了。

最佳解决方法

通过增量升级没有任何内容。所以,不,截至今天似乎没有计划。

在Dapper发布时(适用于0.6.44)引入了增量更新。由于与基础架构不兼容,ubuntu开发人员社区rejected使用它们。

There is no need to submit it to revu. We are aware of the incremental update feature in apt. The apt–pdiff (1) branch (that the version in debian uses) is not merged for ubuntu (yet) because:

  1. we are late in the release cycle (obviously 🙂

  2. it needs archive support to generate diff files and a diffIndex

  3. it only works on indexfiles, not packages

  4. its not entirely clear if it is the right solution for ubuntu

–– Michael Vogt on 25th of May 2006

这是一个正在发生的list of everything,将在11.04发生(不包括未公开跟踪的内容)。

次佳解决方法

它有一个blueprint,我希望能够以各种原因实现它,但我们还没有找到时间去做它 – 它没有帮助它需要一个重要的块来自Launchpad归档基础架构团队的时间已完全被淹没。不过,无论何时我们找到时间,它仍然在我们的back-burner列表中。

一个可能的问题是,压缩包越多,同步它们就越困难。这是良好压缩算法的一个相当基本的属性。可能即使我们实现这一点,也会有一些软件包比现在的情况更好地同步。

其他信息:

第三种解决方法

没有.deb文件是de-facto安装和更新方法。

您提到的方法称为delta updates,由于多种原因被拒绝作为方法,其中一个原因是计算下载内容需要花费太多时间(在评论中的链接中有更多提及)。

An alternative might be apt-fast

Apt-fast is a script that can “drastically improve APT download speed” by using command line download accelerators such as Axel or Aria2 with multiple connections per package.

Installation

sudo add-apt-repository ppa:apt-fast/stable
sudo apt-get update
sudo apt-get install apt-fast

Examples

它与apt-get的工作方式相同,但您使用(2个示例):

sudo apt-fast install PACKAGE
sudo apt-fast upgrade

apt-fast还可以停止和恢复下载,并使用apt-fast download PACKAGE将软件包下载到目录中。

第四种方法

Delta-RPM被吹捧为下一个杀手级软件包管理功能,但它主要因为需要进行计算而不是很棒。如果您使用高度受限的带宽连接,则可以节省您的时间,但如果您想节省时间,请考虑使用apt-fast更快的front-end到dpkg。

参考资料

本文由Ubuntu问答整理, 博文地址: https://ubuntuqa.com/article/2116.html,未经允许,请勿转载。