How can I unzip the archive file with tar.zst?

I do not know how I can unzip a file with the tar.zst extension, and although I searched for solutions on the Internet, I had nothing useful in this matter.

+9
source share
3 answers

The .zst extension means that the archive is compressed by zstd.

The tar command has the -I option (--use-compress-program) to specify the command to compress / decompress.

You can use it as follows.

$ tar -I zstd -xvf archive.tar.zst

+14
source

Unpack it in the Terminal.

 unzstd yourfilename.zst 

I know that there are not many resources available, but I found it here: http://manpages.org/zstd

+1
source

Download library

 https://pypi.org/project/zstandard/ 

python

  import zstandard as zstd ... ... ... ... elif filename_extension == ".zst": dctx = zstd.ZstdDecompressor() with open(submission_path_read, 'rb') as ifh, open(submission_path_save, 'wb') as ofh: dctx.copy_stream(ifh, ofh, write_size=65536) 
0
source

Source: https://habr.com/ru/post/1270278/


All Articles