zstd: command not found. Install zstd on CentOS/Redhat server

Error :

bash: zstd: command not found
bash: zstdmt: command not found
bash: unzstd: command not found
bash: zstdcat: command not found
bash: zstdless: command not found
bash: zstdgrep: command not found

I got the above error on my CentOS server. zstd is used to compress or decompress .zst files. Do the below steps to install zstd on CentOS and Redhat server.

 

Steps to install zstd package on Centos/RHEL server

1. Log into your CentOS/RHEL server as ‘root’ user

2. Run the command ‘yum install epel-release’ to install EPEL repo

3. Execute the command ‘yum install zstd’ to install zstd

4. Type ‘y’ and press enter, if yum ask for confirmation while installing the package

 


# yum install zstd
Dependencies resolved.
==============================================================================================================================================
Package Arch Version Repository Size
==============================================================================================================================================
Installing:
zstd x86_64 1.4.2-1.el8 epel 384 k

Transaction Summary
==============================================================================================================================================
Install 1 Package

Total download size: 384 k
Installed size: 1.5 M
Is this ok [y/N]: y
Downloading Packages:
zstd-1.4.2-1.el8.x86_64.rpm 201 kB/s | 384 kB 00:01
----------------------------------------------------------------------------------------------------------------------------------------------
Total 89 kB/s | 384 kB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : zstd-1.4.2-1.el8.x86_64 1/1
Running scriptlet: zstd-1.4.2-1.el8.x86_64 1/1
Verifying : zstd-1.4.2-1.el8.x86_64 1/1

Installed:
zstd-1.4.2-1.el8.x86_64

 
 

How to install zstd rpm

&nbsp

1. Log into server as ‘root’ user

2. Download zstd package from rpmfind.net website

Link to download zstd on CentOS 6 server :

rpmfind.net/linux/epel/6/x86_64/Packages/z/zstd-1.4.2-1.el6.x86_64.rpm

Link to download zstd on CentOS 7 server :

rpmfind.net/linux/epel/7/x86_64/Packages/z/zstd-1.4.2-1.el7.x86_64.rpm

3. Install zstd using rpm command

rpm -ivh zstd-1.4.2-1.el7.x86_64.rpm