← 返回命令列表

Linux command

xdelta 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Create delta

xdelta delta [old_file] [new_file] [patch.xdelta]

Apply patch

xdelta patch [patch.xdelta] [old_file] [new_file]

Create with compression

xdelta -9 delta [old_file] [new_file] [patch.xdelta]

Show patch info

xdelta info [patch.xdelta]

Test patch

xdelta test [patch.xdelta] [old_file]

说明

xdelta creates and applies binary delta patches between two versions of a file. The delta command compares an old file with a new file and produces a compact patch file containing only the differences, which is typically much smaller than distributing the full new file. The patch command reconstructs the new file by applying the delta to the original file. Configurable compression levels trade processing time for smaller patch sizes. The tool is commonly used for software update distribution, ROM patching, and efficient file synchronization where only changes need to be transmitted.

参数

delta
Create delta file.
patch
Apply delta file.
info
Show patch info.
test
Verify patch.
-0 to -9
Compression level.
-f, --force
Force overwrite.
-s _SOURCE_
Source file.

FAQ

What is the xdelta command used for?

xdelta creates and applies binary delta patches between two versions of a file. The delta command compares an old file with a new file and produces a compact patch file containing only the differences, which is typically much smaller than distributing the full new file. The patch command reconstructs the new file by applying the delta to the original file. Configurable compression levels trade processing time for smaller patch sizes. The tool is commonly used for software update distribution, ROM patching, and efficient file synchronization where only changes need to be transmitted.

How do I run a basic xdelta example?

Run `xdelta delta [old_file] [new_file] [patch.xdelta]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does delta do in xdelta?

Create delta file.