mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-06 11:47:29 +00:00
22 lines
648 B
Plaintext
22 lines
648 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# 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}}`
|