Skip to content

images-compare: initial commit#148

Merged
chewitt merged 4 commits into
mainfrom
img-compare
Jul 8, 2026
Merged

images-compare: initial commit#148
chewitt merged 4 commits into
mainfrom
img-compare

Conversation

@CvH

@CvH CvH commented Jul 5, 2026

Copy link
Copy Markdown
Member

LibreELEC Image Comparison Tool

This PR introduces an image comparison tool under scripts/image-compare designed to compare two LibreELEC images (.img, .img.gz or .tar) by extracting and comparing their internal SquashFS (SYSTEM) contents.

Installation

Before running the script, ensure the required system and Python dependencies are installed:

Ubuntu 26.04

# Install system packages
sudo apt install -y 7zip squashfs-tools file

# Install python requirements
sudo apt install python3-prettytable python3-pil

Usage & Examples

Run images_compare.py by passing two target image files:

python3 scripts/image-compare/images_compare.py \
  image1.img.gz \
  image2.img.gz \
  --min-summary-change 1024

Example Output:

Kernel Files Changed
--------------------
+---------------------------------------------------+-------------+
| File                                              | Size Change |
+---------------------------------------------------+-------------+
| usr/lib/firmware/rtl_bt/rtl8852au_fw.bin          |    -3.7 KiB |
+---------------------------------------------------+-------------+

Summary
-------
Overall size difference: +889.1 KiB
+------+--------------------------------------------+------------+
| Rank | File                                       |   Increase |
+------+--------------------------------------------+------------+
|  1   | usr/lib/systemd/libsystemd-shared-261.so   | +321.1 KiB |
|  2   | usr/lib/systemd/libsystemd-core-261.so     | +128.2 KiB |
+------+--------------------------------------------+------------+

For more details, see the complete README.md.

@chewitt
chewitt merged commit fb4bb9c into main Jul 8, 2026
2 checks passed
@chewitt
chewitt deleted the img-compare branch July 8, 2026 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants