sfv-hash command not found

In this troubleshooting guide we learn how to fix sfv-hash command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

sfv-hash: command not found

or when using sudo you get the following error message

sudo: sfv-hash: command not found

Solutions to sfv-hash: command not found

How To Fix sfv-hash: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu sfv-hash is provided by rhash package.

rhash is:

RHash is a console utility for calculation and verification of magnet links and a wide range of hash sums like CRC32, MD4, MD5, SHA1, SHA256, SHA512, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru. Hash sums are used to ensure and verify integrity of large volumes of data for a long-term storing or transferring.

Features:

  • Output in a predefined (SFV, BSD-like) or a user-defined format.
  • Can calculate Magnet links.
  • Ability to process directories recursively.
  • Updating hash files (adding hash sums of files missing in the hash file).
  • Portability: the program works the same on Linux, *BSD or Windows.

To fix this problem, we can install more using the command below.

sudo apt-get -y install rhash

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install rhash.

sudo apt -y install rhash

Or if you have aptitude installed you can use the following command.

sudo aptitude install rhash

Summary

In this tutorial we learn how to fix sfv-hash command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.