Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1394695
  • 博文数量: 343
  • 博客积分: 13098
  • 博客等级: 上将
  • 技术积分: 2862
  • 用 户 组: 普通用户
  • 注册时间: 2005-07-06 00:35
文章存档

2012年(131)

2011年(31)

2010年(53)

2009年(23)

2008年(62)

2007年(2)

2006年(36)

2005年(5)

分类: LINUX

2012-08-03 16:51:40

There is a plugin for yum called yum-presto. The idea is that many updates only have a tiny amount of changed update, the rest is redundant with what has already been installed. The heart of the buisness is a speed optimized version of the berkeley binary diff algorithm.


A delta RPM is made as follows:

makedeltarpm oldrpm.rpm newrpm.rpm deltarpm.drpm


Note that RPM itself doesn't know anything about these. This is handled entirely by YUM and the new rpm must be reconstituted by YUM before being presented to rpm. The reconstitution is done via:


applydeltarpm delta.drpm new.rpm

applydeltarpm -r old.rpm delta.drpm new.rpm


This can be done from a full repository via:

createdeltarpms ./repo ./repo/DRPMS

To create a presto repo (in particular the prestodelta.xml file) and then link the prestodelta.xml file to the repomod.xml file do:

createprestorepo ./repo modifyrepo ./repodata/prestodelta.xml ./repodata/
阅读(4174) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~