How to Uninstall and Install argon2 on Ubuntu 22.04

Updated: September 1, 2022

Argon2 is a password-hashing function that can be used to hash passwords for credential storage, key derivation, or other applications. In this guide, I will show you ways to install argon2 Ubuntu 22.04.

Software Requirement

  • Operating system: Ubuntu 22.04 is needed for argon2 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install argon2 on Ubuntu 22.04

Install argon2 Ubuntu 22.04

argon2 is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install argon2 using APT

This is one of the popular ways to install any Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these instructions to install argon2 on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt-get -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install argon2 Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install argon2

Install argon2 using Aptitude

Users can manage their installation, upgrade, and removal of packages with Aptitude and view a list of the packages that are currently available. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt-get -y install aptitude

After installing, you can now install argon2, just following these steps:

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to fetch new packages from Ubuntu. Opening the terminal and executing this Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install argon2 Ubuntu by executing this command in the terminal.

sudo aptitude -y install argon2

Uninstall argon2 on Ubuntu 22.04

Have you ever considered how difficult it is to uninstall an application from Ubuntu? You are mistaken; anyone, not just package administrators, can easily uninstall any program.

You can uninstall argon2 on Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove argon2

If you want to uninstall argon2 and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge argon2

Conclusion

In this tutorial, I showed you ways to install argon2 on Ubuntu 22.04 and some ways to uninstall argon2 too. Please do not hesitate to contact me if you require assistance. I’m delighted to respond.