Ways to Uninstall and Install gdebi on Ubuntu 22.04

Updated: September 6, 2022

gdebi lets you install local deb packages resolving and installing its dependencies. apt does the same, but only for remote (http, ftp) located packages. I will show you how to install gdebi on Ubuntu 22.04 in this guide.

Requirements to install

  • OS: gdebi needs Ubuntu 22.04 to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install gdebi on Ubuntu 22.04

Install gdebi Ubuntu 22.04

gdebi 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 gdebi using APT

This is one of the popular ways to install any Ubuntu packages because it is simple to understand, even if you are a Linux novice. Following these steps to get gdebi on your Ubuntu.

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 this Linux command:

sudo apt-get update

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

sudo apt install gdebi

Install gdebi using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already installed it on Ubuntu, run this command to do so.

sudo apt install aptitude

After installing, you can now install gdebi by following these steps:

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 this Linux command:

sudo apt-get update

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

sudo aptitude -y install gdebi

Uninstall gdebi 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 gdebi using APT or Aptitude, you could uninstall gdebi on Ubuntu by running this command

sudo apt remove --auto-remove gdebi

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

sudo apt autoremove --purge gdebi

Conclusion

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