Updating RPMs using binary deltas (demo)
Doncho N. Gunchev
mr700 at globalnet.bg
Mon Jan 26 10:47:08 UTC 2004
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.
--
Regards,
Doncho N. Gunchev
GPG-Key-ID: 1024D/DA454F79
Key fingerprint = 684F 688B C508 C609 0371 5E0F A089 CB15 DA45 4F79
More information about the fedora-devel-list
mailing list