ISO size breakdown? ISO diff?

Amedee Van Gasse (ub) amedee-ubuntu at amedee.be
Wed Jan 20 13:11:25 UTC 2010


On Wed, January 20, 2010 09:49, Jonas Norlander wrote:
> 2010/1/20 Amedee Van Gasse <amedee-ubuntu at amedee.be>:
>> On 18-01-10 09:53, giovanni_re wrote:

>>> Also, is it possible to diff the different ISOs, so that if you have
>>> one
>>> already,&  want one other, you don't have to dl all 700MB, just the
>>> diff?  Like, between 9.10 Ub&  KUb for x86?
>>
>> No.
>
> I think you are wrong. There are programs that can diff binary files,
> for example xdelta. Is this not what he ask for? I haven't used xdelta
> and have no clue how it will work on ISO files.

It is an exercise in futility.

----------CUT----------
amedee at intrepid:~$ sudo aptitude install xdelta
[sudo] password for amedee:
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
Uitgebreide statusinformatie aan het lezen
Initialiseren van pakketstatussen... Klaar
Lezen van taakbeschrijvingen... Klaar
De volgende NIEUWE pakketten zullen worden geïnstalleerd:
  libglib1.2ldbl{a} libxdelta2{a} xdelta
0 pakketten opgewaardeerd, 3 nieuwe geïnstalleerd, 0 te verwijderen en 3
niet opwaarderen.
Heb 224kB archieven nodig. Na uitpakken zal 594kB worden gebruikt.
Wilt u verder gaan? [Y/n/?]
Schrijven van uitgebreide statusinformatie... Klaar
Haal:1 ftp://mirror.hetzner.de lenny/main libglib1.2ldbl 1.2.10-19 [138kB]
Haal:2 ftp://mirror.hetzner.de lenny/main libxdelta2 1.1.3-8 [57,6kB]
Haal:3 ftp://mirror.hetzner.de lenny/main xdelta 1.1.3-8 [28,8kB]
224kB opgehaald in 0s (1003kB/s)
Selecteren van voorheen niet geselecteerd pakket libglib1.2ldbl.
(Database inlezen ... 49548 bestanden en mappen geïnstalleerd.)
Uitpakken van libglib1.2ldbl (uit .../libglib1.2ldbl_1.2.10-19_amd64.deb) ...
Selecteren van voorheen niet geselecteerd pakket libxdelta2.
Uitpakken van libxdelta2 (uit .../libxdelta2_1.1.3-8_amd64.deb) ...
Selecteren van voorheen niet geselecteerd pakket xdelta.
Uitpakken van xdelta (uit .../xdelta_1.1.3-8_amd64.deb) ...
Processing triggers for man-db ...
Instellen van libglib1.2ldbl (1.2.10-19) ...
Instellen van libxdelta2 (1.1.3-8) ...
Instellen van xdelta (1.1.3-8) ...
[ Rootkit Hunter version 1.3.2 ]
File updated: searched for 154 files, found 128
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
Uitgebreide statusinformatie aan het lezen
Initialiseren van pakketstatussen... Klaar
Schrijven van uitgebreide statusinformatie... Klaar
Lezen van taakbeschrijvingen... Klaar

amedee at intrepid:~$ cd download/
amedee at intrepid:~/download$ wget
http://ftp.heanet.ie/pub/ubuntu-releases/karmic/ubuntu-9.10-desktop-i386.iso
http://ftp.heanet.ie/pub/ubuntu-releases/jaunty/ubuntu-9.04-desktop-i386.iso
--2010-01-20 13:42:17-- 
http://ftp.heanet.ie/pub/ubuntu-releases/karmic/ubuntu-9.10-desktop-i386.iso
Herleiden van ftp.heanet.ie... 193.1.193.64, 2001:770:18:aa40::c101:c140
Verbinding maken met ftp.heanet.ie|193.1.193.64|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 723488768 (690M) [application/octet-stream]
Wordt geschreven naar: ubuntu-9.10-desktop-i386.iso

100%[=====================================================================================>]
723488768   9,84M/s   in 85s

2010-01-20 13:43:43 (8,11 MB/s) - 'ubuntu-9.10-desktop-i386.iso'
opgeslagen [723488768/723488768]

--2010-01-20 13:43:43-- 
http://ftp.heanet.ie/pub/ubuntu-releases/jaunty/ubuntu-9.04-desktop-i386.iso
Verbinding maken met ftp.heanet.ie|193.1.193.64|:80... verbonden.
HTTP-verzoek is verzonden; wachten op antwoord... 200 OK
Lengte: 732909568 (699M) [application/octet-stream]
Wordt geschreven naar: ubuntu-9.04-desktop-i386.iso

100%[=====================================================================================>]
732909568   9,74M/s   in 1m 58s

2010-01-20 13:45:41 (5,92 MB/s) - 'ubuntu-9.04-desktop-i386.iso'
opgeslagen [732909568/732909568]

KLAAR --2010-01-20 13:45:41--
Opgehaald: 2 bestanden, 1,4G in 3m 23s (6,83 MB/s)
amedee at intrepid:~/download$ xdelta delta ubuntu-9.04-desktop-i386.iso
ubuntu-9.10-desktop-i386.iso jaunty-karmic.delta
amedee at intrepid:~/download$ ls -hl *.iso *.delta
-rw-r--r-- 1 amedee amedee 576M jan 20 13:50 jaunty-karmic.delta
-rw-r--r-- 1 amedee amedee 699M apr 20  2009 ubuntu-9.04-desktop-i386.iso
-rw-r--r-- 1 amedee amedee 690M okt 28 22:14 ubuntu-9.10-desktop-i386.iso
----------CUT----------

Using a delta for the ISO files would mean a 17% decrease in network
traffic (from 690MB to 576MB) but a 185% increase in storage (from 690 MB
to 1965MB), because you would have to keep the old ISO before you can
apply the path. And Canonical would have to store them on their servers
too. And they would have to replicate all the diffs to all their mirrors,
so that would mean a HUGE increase in network traffic. Plus you would need
checksums for all the diffs. A lot can go wrong in transport.

In other words, the answer is no. Not because is technically impossible,
but because it isn't practical and hardly worth the effort. As we say in
Dutch, er zijn nog andere katten te geselen. (There are other cats to whip
= there are more important things to do)

-- 
Amedee Van Gasse





More information about the kubuntu-users mailing list