How To Install node-shasum on Debian 11
Introduction
In this tutorial we learn how to install node-shasum
on Debian 11.
What is node-shasum
node-shasum is:
This package emulate the well know function sha1sum of Node.js in pure javascript allowing one to use this function in browser context.
In cryptography field, SHA-1 (Secure Hash Algorithm 1) is a cryptographic hash function designed by the United States National Security Agency and is a U.S. Federal Information Processing Standard published by the United States NIST, SHA-1 produces a 160-bit (20-byte) hash value known as a message digest. A SHA-1 hash value is typically rendered as a hexadecimal number, 40 digits long.
This a dependency of browserify
Node.js is an event-based server-side JavaScript engine.
There are three methods to install node-shasum
on Debian 11. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install node-shasum Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install node-shasum
using apt-get
by running the following command:
sudo apt-get -y install node-shasum
Install node-shasum Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install node-shasum
using apt
by running the following command:
sudo apt -y install node-shasum
Install node-shasum Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install node-shasum
using aptitude
by running the following command:
sudo aptitude -y install node-shasum
How To Uninstall node-shasum on Debian 11
To uninstall only the node-shasum
package we can use the following command:
sudo apt-get remove node-shasum
Uninstall node-shasum And Its Dependencies
To uninstall node-shasum
and its dependencies that are no longer needed by Debian 11, we can use the command below:
sudo apt-get -y autoremove node-shasum
Remove node-shasum Configurations and Data
To remove node-shasum
configuration and data from Debian 11 we can use the following command:
sudo apt-get -y purge node-shasum
Remove node-shasum configuration, data, and all of its dependencies
We can use the following command to remove node-shasum
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge node-shasum
Dependencies
node-shasum have the following dependencies:
References
Summary
In this tutorial we learn how to install node-shasum
package on Debian 11 using different package management tools: apt
, apt-get
and aptitude
.