Ways to Uninstall and Install gdu on Ubuntu 22.04

Updated: September 6, 2022

Disk usage analyzer with console interface written in Go. Intended primarily for SSD disks where it can fully utilize parallel processing. However HDDs work as well, but the performance gain is not so huge. In this guide, I will show you ways to install gdu Ubuntu 22.04.

Prerequisites

  • OS: Ubuntu 22.04 or older Ubuntu versions
  • Privileges: Make sure you are able to execute sudo commands.

Prerequisites to install gdu on Ubuntu 22.04

Install gdu Ubuntu 22.04

gdu is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install gdu using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these steps to install gdu on your Ubuntu 22.04.

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install gdu Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get install gdu

Install gdu using Aptitude

If you didn’t install Aptitude on Ubuntu, you need to install it by executing this command.

sudo apt-get -y install aptitude

Then, you can now install gdu by following these steps:

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. You can now install gdu Ubuntu by executing this command in the terminal.

sudo aptitude install gdu

Uninstall gdu 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.

If you installed gdu using APT or Aptitude, you could uninstall gdu on Ubuntu by executing this command

sudo apt remove --auto-remove gdu

To uninstall gdu and remove its data and dependencies, you can also use the following command:

sudo apt autoremove --purge gdu

Ending

In this guide, I showed you ways to install gdu on Ubuntu 22.04 and some ways to uninstall gdu too. Please contact me if you require any assistance. I’d be delighted to respond.