Ways to Uninstall or Install xdiskusage on Ubuntu 22.04

Updated: October 10, 2022

xdiskusage is a user-friendly program to show you what is using up all your disk space. It is based on the design of the “xdu” program written by Phillip C. Dykstra. Changes have been made so it runs “du” for you, and can display the free space left on the disk, and produce a PostScript version of the display. In this tutorial, I will show you ways to install xdiskusage Ubuntu 22.04.

Requirements to install

  • OS: xdiskusage needs Ubuntu 22.04 to work
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install xdiskusage on Ubuntu 22.04

Install xdiskusage Ubuntu 22.04

xdiskusage 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 you believe is simple and easy to follow.

Install xdiskusage using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these instructions to install xdiskusage on your Ubuntu.

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

sudo apt update

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

sudo apt-get install xdiskusage

Install xdiskusage using Aptitude

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

sudo apt -y install aptitude

Then, you can now install xdiskusage, 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. Launch the terminal and enter the following Linux command:

sudo apt-get -y update

Step 2: Start installing the packages on Ubuntu 22.04. You can now install xdiskusage Ubuntu by executing this command in the terminal.

sudo aptitude install xdiskusage

Uninstall xdiskusage 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 xdiskusage Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove xdiskusage

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

sudo apt autoremove --purge xdiskusage

Ending

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