shasum command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
shasum: command not found
or when using sudo you get the following error message
sudo: shasum: command not found
Solutions to shasum: command not found
How To Fix shasum: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu shasum is provided by libdigest-sha-perl package.
libdigest-sha-perl is:
Digest::SHA is a complete implementation of the NIST Secure Hash Standard. It gives Perl programmers a convenient way to calculate SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, SHA-512/224, and SHA-512/256 message digests. The module can handle all types of input, including partial-byte data.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libdigest-sha-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libdigest-sha-perl.
sudo apt -y install libdigest-sha-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libdigest-sha-perl
Summary
In this tutorial we learn how to fix shasum command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.