Man pages sections > man1 > diffoscope

diffoscope - in-depth comparison of files, archives, and directories

DIFFOSCOPE(1) Debian DIFFOSCOPE(1)

NAME

diffoscope - in-depth comparison of files, archives, and directories

SYNOPSIS

diffoscope [-h] [--json output] [OPTIONS] file1 file2
 
diffoscope [-h] [OPTIONS] diff_file
 
diffoscope [-h] [OPTIONS] < diff_file


DESCRIPTION

diffoscope will try to get to the bottom of what makes files or directories different. It will recursively unpack archives of many kinds and transform various binary formats into more human readable form to compare them. It can compare two tarballs, ISO images, or PDF just as easily.
 
It can be scripted through error codes, and a report can be produced with the detected differences. The report can be text or HTML. When no type of report has been selected, diffoscope defaults to write a text report on the standard output.
 
diffoscope is developed as part of the “reproducible builds” Debian project and was formerly known as “debbindiff”.

OPTIONS

-h, --help
show a detailed help message and exit
--version
show program's version number and exit
--debug
display debug messages
--json output
write JSON report to given file (use - for standard output)
--text output
write plain text report to given file (use - for standard output)
--html output
write HTML report to given file (use - for standard output)
--html-dir output
write multi-HTML report to given directory
--max-report-size BYTES
maximum bytes written in report (default: 2048000)
--max-diff-block-lines MAX_DIFF_BLOCK_LINES
maximum number of lines per diff block (default: 50)
--max-diff-input-lines MAX_DIFF_INPUT_LINES
maximum number of lines fed to diff (default: 100000)
--fuzzy-threshold FUZZY_THRESHOLD
threshold for fuzzy-matching (0 to disable, 60 is default, 400 is high fuzziness)
--new-file
treat absent files as empty
--css url
link to an extra CSS for the HTML report

EXIT STATUS

Exit status is 0 if inputs are the same, 1 if different, 2 if trouble.

SEE ALSO

<https://diffoscope.org/>
<https://wiki.debian.org/ReproducibleBuilds>

AUTHOR

Debian “Reproducible Builds” Team GPL-3+