LinuxCommandLibrary

xdelta3

VCDIFF binary delta encoding

TLDR

Create delta

$ xdelta3 -e -s [old_file] [new_file] [patch.xd3]
copy
Apply patch
$ xdelta3 -d -s [old_file] [patch.xd3] [new_file]
copy
High compression
$ xdelta3 -9 -e -s [old_file] [new_file] [patch.xd3]
copy
Show info
$ xdelta3 printdelta [patch.xd3]
copy
Decode without source
$ xdelta3 -d [patch.xd3] [output_file]
copy

SYNOPSIS

xdelta3 [-e|-d] [-s source] [options] [input [output]]

DESCRIPTION

xdelta3 creates and applies binary delta patches using the VCDIFF format defined in RFC 3284. Encoding compares a source file with a target file and produces a compact delta that captures only the differences, while decoding reconstructs the target by applying the delta to the original source.
Compression levels from 0 to 9 trade processing speed for smaller delta sizes. A streaming mode processes data in chunks, enabling memory-efficient handling of very large files. Self-contained patches can be created without requiring the original source file for decoding, embedding the necessary data within the delta itself.

PARAMETERS

-e, --encode

Create delta.
-d, --decode
Apply delta.
-s FILE
Source file.
-0 to -9
Compression level.
-f, --force
Force overwrite.
-c, --stdout
Output to stdout.
-v, --verbose
Verbose output.

CAVEATS

Source file required for decode. Memory usage for large files. Format version matters.

HISTORY

xdelta3 is the third version of xdelta, implementing RFC 3284 VCDIFF. It provides efficient binary delta compression.

SEE ALSO

xdelta(1), bsdiff(1), diff(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community