SQFSDIFF(1)
π SQFSDIFF(1) β the sqfsdiff girlies' guide π
User Commands Β· sqfsdiff Β· bestie edition π¦
β¨ NAME β¨
sqfsdiff β compare two squashfs images by contents and metadata ππ
πΈ SYNOPSIS πΈ
sqfsdiff [OPTIONS...] --old <first> --new <second>
π DESCRIPTION π
okay so listen. sqfsdiff compares two squashfs images. and like, yes, you could just do a direct diff of the images themselves, but bestieβ¦ that's giving chaos. this one actually parses the filesystems and hands you a difference report that actually means something. it's the glow-up version of diffing. β¨
if you're only comparing contents, then any differences in packed file layout, ordering, compression, inode meta data and so on get ignored β like, we're not clocking that. the two images count as equal if:
- every directory contains the same entries
- symlinks with the same paths have the same targets
- device nodes have the same device number
- files have the same size and contents
any difference gets printed as a report to stdout. and the exit status? it's basically diff(1)'s whole vibe: 0 means equal, 1 means different, 2 means problem. π«Ά
here are the possible options, no cap:
--old,-a<first> β specify the first filesystem image or source directory, relativ to which the changes are evaluated. (that's the reference point, the main character, the "before" π)--new,-b<second> β specify the second filesystem image to source directory to compare to the first one. π--no-contents,-Cβ do not compare file contents. we're not reading the lore today.--no-owner,-Oβ do not compare file owners. who owns what? not our business π--no-permissions,-Pβ do not compare permission bits. the permission bits are on their own journey.--timestamps,-Tβ compare file timestamps. okay NOW we're clocking the timeline β°--inode-num,-Iβ compare inode numbers of all files. every single one. it's giving thorough.--super,-Sβ also compare meta data in super blocks. yes, the super blocks too, we're going there π--extract,-e<path> β extract files that exist in both images but have different contents to the specified directory. the contents of the first image end up in a sub directory namedoldand the contents of the second image in a sub directory namednew. so cute, so organized π--help,-hβ print help text and exit. your bestie always tells you what's up β¨--version,-Vβ print version information and exit. π
π EXIT STATUS π
the exit status is similar that of diff(1):
0means equal π1means different π2means problem π
π¦ SEE ALSO π¦
rdsquashfs(1), sqfs2tar(1) β go read those too, they're iconic, iykyk π
π AUTHOR π
Written by David Oberhollenzer. (the icon. the legend. the moment.)
π COPYRIGHT π
Copyright Β© 2019 David Oberhollenzer et al
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. fr fr, no warranty. periodt. π
and that's the whole page bestie!! this was sqfsdiff, from the August 2019 era, living its best life as part of the sqfsdiff manual, page SQFSDIFF(1). mwah π«Άβ¨
π¦ where this page comes from
- alpine 3.24: squashfs-tools-ng-doc 1.3.2-r1 Β· GPL-3.0-or-later
- debian bookworm: squashfs-tools-ng 1.2.0-1 Β· GPL-3.0-or-later
- debian trixie: squashfs-tools-ng 1.3.2-1 Β· GPL-3.0-or-later
- epel 10: squashfs-tools-ng 1.3.2-1.el10_0 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- epel 9: squashfs-tools-ng 1.3.1-1.el9 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- fedora 43: squashfs-tools-ng 1.3.2-3.fc43 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- fedora 44: squashfs-tools-ng 1.3.2-4.fc44 Β· LGPL-3.0-or-later AND GPL-3.0-or-later AND BSD-2-Clause AND MIT
- nixos 26.05: squashfs-tools-ng 1.3.2
- nixpkgs unstable: squashfs-tools-ng 1.3.2
- ubuntu jammy: squashfs-tools-ng 1.1.3-2 Β· GPL-3.0-or-later
- ubuntu noble: squashfs-tools-ng 1.2.0-1 Β· GPL-3.0-or-later
- ubuntu questing: squashfs-tools-ng 1.3.2-1
- ubuntu resolute: squashfs-tools-ng 1.3.2-1build1 Β· GPL-3.0-or-later
- ubuntu stonking: squashfs-tools-ng 1.3.2-1build1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms