How To Install rhash on Ubuntu 18.04

In this tutorial we learn how to install rhash on Ubuntu 18.04. rhash is utility for computing hash sums and magnet links

Introduction

In this tutorial we learn how to install rhash on Ubuntu 18.04.

What is rhash

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.

There are three methods to install rhash on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install rhash Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install rhash using apt-get by running the following command:

sudo apt-get -y install rhash

Install rhash Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install rhash using apt by running the following command:

sudo apt -y install rhash

Install rhash 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install rhash using aptitude by running the following command:

sudo aptitude -y install rhash

How To Uninstall rhash on Ubuntu 18.04

To uninstall only the rhash package we can use the following command:

sudo apt-get remove rhash

Uninstall rhash And Its Dependencies

To uninstall rhash and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove rhash

Remove rhash Configurations and Data

To remove rhash configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge rhash

Remove rhash configuration, data, and all of its dependencies

We can use the following command to remove rhash configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge rhash

References

Summary

In this tutorial we learn how to install rhash package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.