2025-03-14 21:59:59 -06:00
|
|
|
# xdelta
|
|
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
> A delta encoding utility to generate and apply patches to binary files.
|
|
|
|
|
> For the modern version (v3), see `xdelta3`.
|
|
|
|
|
> More information: <https://manned.org/xdelta>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Generate a patch (delta) between two files:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`xdelta delta {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
- Apply a patch to an old file to reconstruct the new file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2026-02-18 06:55:01 -07:00
|
|
|
`xdelta patch {{path/to/patch_file}} {{path/to/old_file}} {{path/to/new_file}}`
|
|
|
|
|
|
|
|
|
|
- Generate a patch with a specific compression level:
|
|
|
|
|
|
|
|
|
|
`xdelta delta -{{0..9}} {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}`
|