In the case of use in the form

tar -cf - 123.png | gzip -n -c >png.tar.gz tar -cf - 123.png | gzip -n -c >png2.tar.gz 

The checksums of the md5sum archives are the same. If I save the extended file attributes to the archive with the appropriate options

 tar --acls --xattrs -cf - 123.png | gzip -n -c >png.tar.gz tar --acls --xattrs -cf - 123.png | gzip -n -c >png2.tar.gz 

then the checksums of the archives are always different. Why is that? Can this be circumvented?

1 answer 1

This is the beauty that turned out, which counts the sum and at the same time creates an archive based on the absolute paths from the file:

 tar --xattrs --acls --posix --pax-option=exthdr.name=%d/PaxHeaders/%f,delete=atime -cf - --files-from=123.txt 2>/dev/null | gzip -n -c | tee 123.tar.gz | md5sum