HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xdelta3 — A delta compression tool for binary files. More information: <https://github.com/jmacd/xdelta/blob/w

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandcompressiondeltaxdelta3clitoolbinaryfor

Problem

How to use the xdelta3 command: A delta compression tool for binary files. More information: <https://github.com/jmacd/xdelta/blob/wiki/CommandLineSyntax.md>.

Solution

xdelta3 — A delta compression tool for binary files. More information: <https://github.com/jmacd/xdelta/blob/wiki/CommandLineSyntax.md>.

Create a patch ([e]ncode) based on a [s]ource file:
xdelta3 -e -s {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}


Apply a patch ([d]ecompress) to a [s]ource file:
xdelta3 -d -s {{path/to/old_file}} {{path/to/patch_file}} {{path/to/new_file}}


Create a patch with a specific compression level:
xdelta3 -{{0..9}} -s {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}

Code Snippets

Create a patch ([e]ncode) based on a [s]ource file

xdelta3 -e -s {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}

Apply a patch ([d]ecompress) to a [s]ource file

xdelta3 -d -s {{path/to/old_file}} {{path/to/patch_file}} {{path/to/new_file}}

Create a patch with a specific compression level

xdelta3 -{{0..9}} -s {{path/to/old_file}} {{path/to/new_file}} {{path/to/patch_file}}

Context

tldr-pages: common/xdelta3

Revisions (0)

No revisions yet.