| 1 |
Q: How do I use 'debdelta' to upgrade my Debian box, and (possibly) |
| 2 |
speedup/save on bandwidth? |
| 3 |
|
| 4 |
A: Quick answer: |
| 5 |
apt-get update |
| 6 |
debdelta-upgrade |
| 7 |
apt-get upgrade |
| 8 |
|
| 9 |
|
| 10 |
Q: Do you use 'xdelta' or 'bsdiff' ? |
| 11 |
|
| 12 |
A: 'debdelta' has an option '--delta-algo' to choose between |
| 13 |
xdelta xdelta-bzip xdelta3 bsdiff |
| 14 |
|
| 15 |
|
| 16 |
Q: How do you integrate this approach with the minimal security |
| 17 |
that signed Release files give us today? |
| 18 |
|
| 19 |
A: 'debpatch' recreates the new .deb , and guarantees that it is equal to the |
| 20 |
one in archives, so archive signatures can be verified |
| 21 |
(for this reason, 'debdelta' does not use dpkg-repack ). |
| 22 |
Moreover, since version 0.31, delta files are GPG signed. |
| 23 |
|
| 24 |
|
| 25 |
Q: What if any or both the debs are signed using dpkg-sig ? |
| 26 |
|
| 27 |
A: Supported. |
| 28 |
|
| 29 |
|
| 30 |
Q: What about .debs where the data part is compressed with bzip ? |
| 31 |
|
| 32 |
A: supported since version 0.24 |
| 33 |
|
| 34 |
|
| 35 |
Q: And with lzma? |
| 36 |
|
| 37 |
A: Since version 0.31 |
| 38 |
|
| 39 |
|
| 40 |
Q: can 'debpatch' recreate the new .deb using the installed old .deb, even when |
| 41 |
there are dpkg-diversions ? |
| 42 |
|
| 43 |
A: yes. |
| 44 |
|
| 45 |
|
| 46 |
Q: can 'debpatch' recreate the new .deb using the installed old .deb, even when |
| 47 |
conf files were modified ? |
| 48 |
|
| 49 |
A: yes. |
| 50 |
|
| 51 |
|
| 52 |
Q: can 'debpatch' recreate the new .deb using the installed old .deb, |
| 53 |
when 'prelink' is used in the host? |
| 54 |
|
| 55 |
A: since version 0.27 |
| 56 |
|
| 57 |
|
| 58 |
Q: How does 'debdelta' work? What is the content of delta files? |
| 59 |
|
| 60 |
A: See the example script /usr/share/debdelta/debpatch.sh |
| 61 |
|
| 62 |
|
| 63 |
Q: What about backward compatibility? If I create a delta with the |
| 64 |
most recent version of 'debdelta' will another user be able to |
| 65 |
apply it with an older version of 'debpatch' ? |
| 66 |
|
| 67 |
A: It depends. A delta contains some keywords in the form |
| 68 |
'need-xxxx' that express the requirements for applying it, so that |
| 69 |
'debpatch' will graciously fail if it sees that it cannot satisfy |
| 70 |
the requirements, and ask to be upgraded. |
| 71 |
|
| 72 |
|
| 73 |
Q: What about backward compatibility, the other way round? If I created |
| 74 |
a delta long ago with a very old version of 'debdelta', will I be |
| 75 |
be able to apply it with a future version of 'debpatch' ? |
| 76 |
|
| 77 |
A: This should always be possible (but for bugs). |