How can I decompress an archive file having .zst or tar.zst? [closed]

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

  • https://github.com/facebook/zstd

The tar command has an option -I (--use-compress-program) to specify a command for compression/decompression.

You can use it as follows.

$ tar --use-compress-program=unzstd -xvf archive.tar.zst

Decompress it in Terminal.

unzstd yourfilename.zst

I know there aren't many resources available but I found this here: http://manpages.org/zstd


If you have a standard cmake + gcc build stack:

git clone https://github.com/facebook/zstd.git
cd zstd/build/cmake
cmake .
make
./programs/zstd -d /path/to/file.zst

On macOS Mojave 10.14.3, I was unable to specify the compression algorithm using the -I flag. Doing it this way worked for me;

Install zstd using brew if you don't already have it installed.

  1. Decompress from .zst: unzstd filename.tar.zst or zstd -d filename.tar.zst. filename.tar will be created.
  2. List compressed archive: tar tf filename.tar.
  3. Extract the compressed archive: tar xf filename.tar.

Hope this helps.