How To Install Zstd?

How To Install Zstd?

zstd

Compress or decompress files with Zstandard compression.

Maintainer: Debian Med Packaging Team



Section: utils

Install zstd

  • Debian apt-get install zstd Click to copy
  • Ubuntu apt-get install zstd Click to copy
  • Alpine OS apk add zstd Click to copy
  • Arch Linux pacman -S zstd Click to copy
  • Kali Linux apt-get install zstd Click to copy
  • Fedora dnf install zstd Click to copy
  • Raspbian apt-get install zstd Click to copy
  • macOS brew install zstd Click to copy

Compress or decompress files with Zstandard compression.

How to use zstd?

Below are few example commands for zstd that you can use in the terminal.

Compress a file into a new file with the .zst suffix:
zstd fileClick to copy
Decompress a file:
zstd -d file.zstClick to copy
Decompress to stdout:
zstd -dc file.zstClick to copy
Compress a file, while specifing the compression level. 0 = Worst, 19 = Best (Default level is 3):
zstd -level fileClick to copy
Use more memory (both when compressing and decompressing) to achieve a higher compression ratio:
zstd --ultra -level fileClick to copy
Install the latest version of zstd in Debian, Ubuntu, Alpine, Arch, Kali, Fedora, Raspbian and macOS from terminal. To install the zstd just copy the above command for your OS and run into terminal. After you run the command it will grab the latest version of zstd from the respository and install it in your computer/server.