Scroll to navigation

SQFSDIFF(1) User Commands SQFSDIFF(1)


sqfsdiff - compare two squashfs images by contents and metadata


sqfsdiff [OPTIONS...] --old <first> --new <second>


Compare two squashfs images. In contrast to doing a direct diff of the images, this actually parses the filesystems and generates a more meaningful difference report.

If only contents are compared, any differences in packed file layout, ordering, compression, inode meta data and so on is ignored and the two images are considered equal if each directory contains the same entries, symlink with the same paths have the same targets, device nodes the same device number and files the same size and contents.

A report of any difference is printed to stdout. The exit status is similar that of diff(1): 0 means equal, 1 means different, 2 means problem.

Possible options:

Specify the first filesystem image or source directory, relativ to which the changes are evaluated.
Specify the second filesystem image to source directory to compare to the first one.
Do not compare file contents.
Do not compare file owners.
Do not compare permission bits.
Compare file timestamps.
Compare inode numbers of all files.
Also compare meta data in super blocks.
Extract files that exist in both images but have different contents to the specified directory. Contents of the first image end up in a sub directory named old and the contents of the second image in a sub directory named new.
Print help text and exit.
Print version information and exit.


The exit status is similar that of diff(1): 0 means equal, 1 means different, 2 means problem.


rdsquashfs(1), sqfs2tar(1)


Written by David Oberhollenzer.


Copyright © 2019 David Oberhollenzer et al License GPLv3+: GNU GPL version 3 or later <>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

August 2019 sqfsdiff