compressionarchivezstd

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


Suppose I have two files:

How can I decompress these files in terminal?


Solution

  • The extention .zst means that the archive is compressed by 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
    $ tar --zstd -xvf archive.tar.zst