Binary diffs for deb files

Scott James Remnant scott at ubuntu.com
Wed May 3 17:07:22 BST 2006


On Tue, 2006-05-02 at 22:30 +1000, dave kempe wrote:

> James Hall wrote:
> > The deb file needs to be decompressed then put together again since
> > doing binary diffs on gzip'ed files make very large diffs. Usually as
> > large as the file itself - making the diff completely pointless. Zsync
> > on compressed deb's would save no bandwidth.
> 
> what about if you used the --rsyncable switch to gzip?
> from man gzip:
> --rsyncable
>                While compressing, synchronize the output occasionally 
> based  on the  input.   This  increases  size  by less than 1 percent 
> most cases, but means that the rsync(1) program can much  more 
> efficiently syncronize files compressed with this flag.  gunzip
> cannot tell the difference between a compressed file  created  with this 
> option, and one created without it.
> 
Debs aren't compressed with gzip, but with zlib which doesn't directly
support the rsyncable option.

Scott
-- 
Scott James Remnant
scott at ubuntu.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060503/1eeba836/attachment.pgp


More information about the ubuntu-devel mailing list