Introduction
While I have been using zsync to update ISO files for some time, I have become aware that jigdo, jigdo-lite and jigdo-file do a similar job. This exercise is to try out jigdo and compare it with zsync.
Procedure
I checked using Synaptic and found that I had jigdo already installed from the Ubuntu [Feisty] repositories. The version I am using is : --
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-lite -v
Jigsaw Download "lite"
Copyright (C) 2001-2005 | jigdo@
Richard Atterer | atterer.net
Loading settings from `/home/paul/.jigdo-lite'
jigdo-lite/0.7.3 (GNU Wget 1.10.2; )
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo -v
jigdo version 0.7.3
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-file -v
jigdo-file version 0.7.3
- I first built a template from an existing ISO file.
- Using this template, after renaming the file to .old, I ran jigdo-lite to 'update' the ISO using the '.old' and the '.jigdo' files as input.
- The process ran and built the 'updated' ISO file, checked it for md5sum equivalence and verified it as successfully created.
- Output of this process is documented below.
Exemplar
Documentation of the process in dummy run.
Update Dreamlinux with jigdo-lite
ls -l
total 716060
-rw------- 1 paul paul 731076608 2008-11-01 22:43 DL3.5-RC4_211008.iso
-rw-r--r-- 1 paul paul 55 2008-10-31 22:16 DL3.5-RC4_211008.iso.md5sum
-rw-r--r-- 1 paul paul 1428059 2008-10-31 23:24 DL3.5-RC4_211008.iso.zsync.save
-rw-r--r-- 1 paul paul 5723 2008-11-01 23:52 zsync-update.txt
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-file DL3.5-RC4_211008.iso
jigdo-file: Invalid command `DL3.5-RC4_211008.iso'
(Must be one of: make-template mt make-image mi print-missing pm print-missing-all pma verify ver scan sc list-template ls md5sum md5)
jigdo-file: Try `jigdo-file -h' or `man jigdo-file' for more information
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-file -mt DL3.5-RC4_211008.iso
jigdo-file: invalid option -- m
jigdo-file: Try `jigdo-file -h' or `man jigdo-file' for more information
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-file mt DL3.5-RC4_211008.iso
jigdo-file make-template: Not all of --image, --jigdo, --template specified.
(Attempt to deduce missing names failed.)
jigdo-file: Try `jigdo-file -h' or `man jigdo-file' for more information
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-file mt --image DL3.5-RC4_211008.iso
Warning - no files specified. The template will contain the complete image contents!
Finished - image size is 731076608 bytes.
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ ls -l
total 1424744
-rw------- 1 paul paul 731076608 2008-11-01 22:43 DL3.5-RC4_211008.iso
-rw-r--r-- 1 paul paul 55 2008-10-31 22:16 DL3.5-RC4_211008.iso.md5sum
-rw-r--r-- 1 paul paul 1428059 2008-10-31 23:24 DL3.5-RC4_211008.iso.zsync.save
-rw-r--r-- 1 paul paul 256 2009-01-21 21:32 DL3.5-RC4_211008.jigdo
-rw-r--r-- 1 paul paul 724972911 2009-01-21 21:32 DL3.5-RC4_211008.template
-rw-r--r-- 1 paul paul 5723 2008-11-01 23:52 zsync-update.txt
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ cat DL3.5-RC4_211008.jigdo
# JigsawDownload
# See <http://atterer.net/jigdo/> for details about jigdo
[Jigdo]
Version=1.2
Generator=jigdo-file/0.7.3
[Image]
Filename=DL3.5-RC4_211008.iso
Template=DL3.5-RC4_211008.template
Template-MD5Sum=grWhJ7aDpiFgE1XsHWcJlQ
[Servers]
[Parts]
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ jigdo-lite DL3.5-RC4_211008.jigdo
Jigsaw Download "lite"
Copyright (C) 2001-2005 | jigdo@
Richard Atterer | atterer.net
Loading settings from `/home/paul/.jigdo-lite'
-----------------------------------------------------------------
Images offered by `DL3.5-RC4_211008.jigdo':
1: DL3.5-RC4_211008.iso
-----------------------------------------------------------------
If you already have a previous version of the CD you are
downloading, jigdo can re-use files on the old CD that are also
present in the new image, and you do not need to download them
again. Mount the old CD ROM and enter the path it is mounted under
(e.g. `/mnt/cdrom').
Alternatively, just press enter if you want to start downloading
the remaining files.
Files to scan:
Not downloading .template file - `DL3.5-RC4_211008.template' already present
-----------------------------------------------------------------
Merging parts from `file:' URIs, if any...
/usr/bin/jigdo-file: Output file `DL3.5-RC4_211008.iso' already exists - delete it or use --force
jigdo-file failed with code 3 - aborting.
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ ls -l
total 1424744
-rw------- 1 paul paul 731076608 2008-11-01 22:43 DL3.5-RC4_211008.iso
-rw-r--r-- 1 paul paul 55 2008-10-31 22:16 DL3.5-RC4_211008.iso.md5sum
-rw-r--r-- 1 paul paul 1428059 2008-10-31 23:24 DL3.5-RC4_211008.iso.zsync.save
-rw-r--r-- 1 paul paul 256 2009-01-21 21:32 DL3.5-RC4_211008.jigdo
-rw-r--r-- 1 paul paul 724972911 2009-01-21 21:32 DL3.5-RC4_211008.template
-rw-r--r-- 1 paul paul 5723 2008-11-01 23:52 zsync-update.txt
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ mv DL3.5-RC4_211008.iso DL3.5-RC4_211008.iso.old
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ time jigdo-lite DL3.5-RC4_211008.jigdo
Jigsaw Download "lite"
Copyright (C) 2001-2005 | jigdo@
Richard Atterer | atterer.net
Loading settings from `/home/paul/.jigdo-lite'
-----------------------------------------------------------------
Images offered by `DL3.5-RC4_211008.jigdo':
1: DL3.5-RC4_211008.iso
-----------------------------------------------------------------
If you already have a previous version of the CD you are
downloading, jigdo can re-use files on the old CD that are also
present in the new image, and you do not need to download them
again. Mount the old CD ROM and enter the path it is mounted under
(e.g. `/mnt/cdrom').
Alternatively, just press enter if you want to start downloading
the remaining files.
Files to scan:
Not downloading .template file - `DL3.5-RC4_211008.template' already present
-----------------------------------------------------------------
Merging parts from `file:' URIs, if any...
Found 0 of the 0 files required by the template
Successfully created `DL3.5-RC4_211008.iso'
-----------------------------------------------------------------
Finished!
The fact that you got this far is a strong indication that `DL3.5-RC4_211008.iso'
was generated correctly. I will perform an additional, final check,
which you can interrupt safely with Ctrl-C if you do not want to wait.
OK: Checksums match, image is good!
real 4m57.577s
user 0m42.291s
sys 0m39.362s
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$ ls -l
total 2139408
-rw-r--r-- 1 paul paul 731076608 2009-01-21 21:53 DL3.5-RC4_211008.iso
-rw-r--r-- 1 paul paul 55 2008-10-31 22:16 DL3.5-RC4_211008.iso.md5sum
-rw------- 1 paul paul 731076608 2008-11-01 22:43 DL3.5-RC4_211008.iso.old
-rw-r--r-- 1 paul paul 1428059 2008-10-31 23:24 DL3.5-RC4_211008.iso.zsync.save
-rw-r--r-- 1 paul paul 256 2009-01-21 21:32 DL3.5-RC4_211008.jigdo
-rw-r--r-- 1 paul paul 724972911 2009-01-21 21:32 DL3.5-RC4_211008.template
-rw-r--r-- 1 paul paul 16384 2009-01-21 21:50 jigdo-file-cache.db
-rw-r--r-- 1 paul paul 5723 2008-11-01 23:52 zsync-update.txt
paul@PAULS-Klikit:/mnt/Data1/NewHome/paul/ISOfiles$
Note: This is the saved output of my console window, mistakes and all.
Links
<p_at_dirac.org >
Copyright © 2001 Peter Jay Salzman
2004-01-08, v1.1
Comments (0)
You don't have permission to comment on this page.