Zstd: Is there a way to search a compressed archive?

Created on 1 Dec 2019  ·  3Comments  ·  Source: facebook/zstd

I am currently using tar to make an archive of many small files so there is more history for the compression. For example, I have "file.tar.zst" I'm curious if there is any possible way to search through the files without having to decompress the archive?

question

Most helpful comment

Well, to traverse the entire archive, you need to traverse the entire archive, but you can avoid writing it to disk like this zstd -d owo.tar.zst -c 2>/dev/null | tar -t, for example

All 3 comments

Not that I'm aware of.
It can't be faster than searching though a non-compressed .tar file,
and as far as I know, -t and --list require a complete scan of the file.

Well, to traverse the entire archive, you need to traverse the entire archive, but you can avoid writing it to disk like this zstd -d owo.tar.zst -c 2>/dev/null | tar -t, for example

I believe @nabijaczleweli answers this question quite cleanly.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AbdulrahmanAltabba picture AbdulrahmanAltabba  ·  3Comments

vade picture vade  ·  3Comments

planet36 picture planet36  ·  3Comments

escalade picture escalade  ·  3Comments

icebluey picture icebluey  ·  3Comments