Hi Attilla,

Thanks for telling me about diffoscope!  It worked well.

Tsz-Wo


% diffoscope $F1 $F2

--- ./ratis-assembly/target/ratis-assembly-3.2.0-src.tar.gz

+++ ./target/reference/org.apache.ratis/ratis-assembly-3.2.0-src.tar.gz

├── ratis-assembly-3.2.0-src.tar

│ ├── file list

│ │ @@ -4,15 +4,14 @@

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/intellij/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000
apache-ratis-3.2.0-src/dev-support/intellij/runConfigurations/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/bin/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/docs/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/namazu_configs/

│ │  drwxr-xr-x   0 root         (0) root         (0)        0 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/screenrcs/

│ │ --rw-r--r--   0 root         (0) root         (0)    16384 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/.make_rc.sh.swp

│ │  -rw-r--r--   0 root         (0) root         (0)     8187 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/checkstyle.xml

│ │  -rw-r--r--   0 root         (0) root         (0)     2585 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/docker/Dockerfile

│ │  -rw-r--r--   0 root         (0) root         (0)     1359 2025-06-06
15:49:40.000000
apache-ratis-3.2.0-src/dev-support/intellij/runConfigurations/ExampleServer1.xml

│ │  -rw-r--r--   0 root         (0) root         (0)     1359 2025-06-06
15:49:40.000000
apache-ratis-3.2.0-src/dev-support/intellij/runConfigurations/ExampleServer2.xml

│ │  -rw-r--r--   0 root         (0) root         (0)     1359 2025-06-06
15:49:40.000000
apache-ratis-3.2.0-src/dev-support/intellij/runConfigurations/ExampleServer3.xml

│ │  -rw-r--r--   0 root         (0) root         (0)     2960 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/README.md

│ │  -rw-r--r--   0 root         (0) root         (0)     7685 2025-06-06
15:49:40.000000 apache-ratis-3.2.0-src/dev-support/vagrant/Vagrantfile



On Fri, Jun 6, 2025 at 10:24 AM Attila Doroszlai <[email protected]>
wrote:

> > Then, I generated a file list for each tar balls:
> > % tar tzf $F | sort > $F.txt
>
> I recommend trying diffoscope [1] for this purpose.
>
> "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."
>
> -Attila
>
> [1] https://diffoscope.org
>

Reply via email to