Install Hashcat using the apt package manager
In this step, you will install Hashcat on your Ubuntu system. We will use the apt package manager, which is the standard tool for managing software on Debian-based Linux distributions like Ubuntu.
First, it's a good practice to update your system's package list to ensure you get the latest available versions of software. Run the following command in your terminal:
sudo apt update
You will see the package lists being downloaded from the repositories.
Next, you can install Hashcat. The -y flag is used to automatically answer "yes" to any prompts during the installation process, making it non-interactive.
sudo apt install hashcat -y
The system will now download and install Hashcat and its dependencies. You will see output detailing the progress of the installation. A sample output might look like this (the exact packages and versions may vary):
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
hashcat-data ocl-icd-libopencl1
The following NEW packages will be installed:
hashcat hashcat-data ocl-icd-libopencl1
0 upgraded, 3 newly installed, 0 to remove and XX not upgraded.
Need to get X,XXX kB of archives.
After this operation, XX.X MB of additional disk space will be used.
...
Setting up hashcat-data (X.X.X+ds1-1) ...
Setting up ocl-icd-libopencl1:amd64 (X.X.X-1) ...
Setting up hashcat (X.X.X+ds1-1) ...
Processing triggers for man-db (X.X.X-1) ...
Processing triggers for libc-bin (X.X.X-0ubuntu1) ...
Once the command prompt returns, Hashcat is installed on your system.