全部博文(343)
分类: 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