On Sunday 25 January 2004 16:49, M A Young wrote:
Here is a couple of demo short scripts for generating and applying deltas between two rpms. The key step is to use the minigzip program from the zlib source (see the docs directory of the zlib-devel package), as minigzip uses compression compatible with the compression rpm uses. If I was writing this properly, I would consider using python, which seems to have a zlib modules, and could also hook into some rpm libraries.
Michael Young
makerpmdelta.sh script --- cut --- rpm2cpio <$FILE1 >$FILE1.cpio rpm2cpio <$FILE2 >$FILE2.cpio --- cut --- This way you loose pre/post install/uninstall scripts AFAIK. Also what about signed packages? I don't say that not having xdelta/patch like tool for rpms is a good thing, but it looks like it's not that easy... Take a look in the list archives, there was a discussion about this problem.