Re: Extracting indiviual files or directories from XYZ.tar.xz - Possible?
On 2025-08-09 19:39:57 +0200, Nicolas George wrote:
> Vincent Lefevre (HE12025-08-09):
> > xz compresses into several blocks by default (of course, this is
> > visible only on very big files, where it really matters).
>
> Before posting, I have checked on files of varied sizes, including a 14G
> one. What did you test?
Yes, an example:
qaa% ls -l PROGRAMME-FFC-2024.pdf
-rw-r--r-- 1 vinc17 vinc17 40991563 2024-11-11 02:18:14 PROGRAMME-FFC-2024.pdf
qaa% xz -k PROGRAMME-FFC-2024.pdf
qaa% xz -lv PROGRAMME-FFC-2024.pdf.xz
PROGRAMME-FFC-2024.pdf.xz (1/1)
Streams: 1
Blocks: 2
Compressed size: 38.7 MiB (40530824 B)
Uncompressed size: 39.1 MiB (40991563 B)
Ratio: 0.989
Check: CRC64
Stream Padding: 0 B
Streams:
Stream Blocks CompOffset UncompOffset CompSize UncompSize Ratio Check Padding
1 2 0 0 40530824 40991563 0.989 CRC64 0
Blocks:
Stream Block CompOffset UncompOffset TotalSize UncompSize Ratio Check
1 1 12 0 24961828 25165824 0.992 CRC64
1 2 24961840 25165824 15568948 15825739 0.984 CRC64
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Pascaline project (LIP, ENS-Lyon)
Reply to: