Home Ubuntu The 5 best ways to uninstall software on Ubuntu

The 5 best ways to uninstall software on Ubuntu

by Abraham
Published: Updated:
Uninstall Programs in Ubuntu

Do you need to uninstall a program from your Ubuntu system? You have various possibilities, all of which are simple. This guide will show you how to delete software packages from Ubuntu using the terminal and if you prefer the GUI way, the Ubuntu Software app is your best bet. There are numerous reasons why you would want to uninstall software, regardless of the OS you are running.

Perhaps the software has been corrupted and no longer functions correctly, or your application has become virus-infected, making uninstalling it safe. When you no longer require the software, you uninstall it to free up space.

We know that Ubuntu and other Linux distributions differ from the widely used Windows. Even the most basic tasks might be complex for users transitioning from Windows to Ubuntu. Uninstalling software might be difficult. Thus this post will help you grasp the various methods for binning software on Ubuntu.

Apps installation methods

Just as installing software may be done in two ways, using the terminal or through the GUI, removing software can be done in either. The following are the three primary categories of software packages that are installed on Ubuntu:

  1. Debian packages or native packages
  2. Packages that snap together
  3. Apps from Flatpak

Native packages, often known as Debian packages, are packages that may be discovered in and uploaded to Ubuntu’s repository. These packages are available solely for Debian-based distributions such as Ubuntu. Snap and Flatpak packages were introduced to accommodate alternative distributions. These packages are compatible with all Linux distributions.

Uninstalling Apps from Ubuntu

The primary methods we shall look at in this article are:

  1. Uninstalling software using the terminal
  2. Uninstalling software using the Ubuntu Software Center (GUI method)

Method 1: Uninstalling software using the terminal

This method contains different ways that can be used to uninstall or remove the software from Ubuntu. Sit tight since we shall be illustrating all the different ways a terminal can be used to uninstall unwanted software from your Ubuntu workstation.

You can delete installed applications from your system using the sudo commands apt-get remove and apt-get purge. But first, you must know the exact package name under which the software was installed.

The following code will list all of the packages that are currently installed on your system:

dpkg --list

Note: If you intend to copy the exact package name, you must select and highlight it, right-click, and copy it for future use. Now that you have done that let us check out how to use the particular command to uninstall software on your Ubuntu OS

run dpkg command to view installed files

run the dpkg command to view installed files

1.a) Using the apt-get remove command to uninstall software

The apt-get remove script/command removes software from your system while retaining configuration files, plugins, and settings that you may have installed later. This allows you to reinstall the software with the same settings.  To delete software, run the following command with sudo privileges:

sudo apt-get remove package-name

You will be prompted for the sudo password and informed of what will be removed from your system. I’ll uninstall the OpenJDK package “openjdk-11-jdk:amd64” from my system in this example.

sudo apt-get remove openjdk-11-jdk:amd64
uninstall openjdk

uninstall openjdk

To confirm the uninstall procedure, the system will prompt with a y/n option. The process will begin when you click Y, and the software will be deleted from your Ubuntu Workstation.

confirm by typing y

Confirm by typing Y

1.b) Using the apt-get purge command to uninstall software

If you wish to entirely delete an application from your system, including any customized settings, use the apt-get purge command.  In this case, I’ll uninstall the OpenJDK package “openjdk-11-jdk:amd64” from my machine.  To delete software, run the following command with sudo privileges;

sudo apt-get purge package-name

You will be prompted for the sudo password and informed of what will be purged from your system.

sudo apt-get purge openjdk-11-jdk:amd64
purge openjdk

purge openjdk

To confirm the uninstall procedure, the system will prompt with a y/n option. The process will begin when you click Y, and the software will be deleted from your Ubuntu Workstation.

confirm purge process by clicking y

Confirm the purge process by clicking Y

1. c) Using the terminal to uninstall snap packages

Because of their ease of usage, snap packages have grown in popularity. Follow these procedures to uninstall a specific Snap package.

  1. If you don’t remember the exact name of your Snap package, use the following command and look it up in the list.
snap list
snap list

snap list

  1. Once you’ve determined the correct name of the Snap package you want to uninstall, enter the following command into the terminal.
sudo snap remove app name
remove snap package

remove snap package

4. d) Using the terminal to uninstall Flatpak packages

Although Flatpaks are not as prevalent as Snap packages, they are nevertheless used by many Ubuntu users. To remove Flatpaks from your system, follow these instructions.

  1. If you are unsure of the specific name of your Flatpak package, use the following command to look for it in the list.
    flatpak list
    flatpak list

    flatpak list

    Note: My output is empty because I have not installed any flatpak package. But if you have one installed,, you can uninstall it by using the command provided in step two below.

  2. Once you’ve located your selected Flatpak package name, use the following command in the terminal to delete it from your system.
    sudo flatpak uninstall program

That’s it. Those are the alternative ways one can use to uninstall software using a terminal on their Ubuntu workstations. If the mentioned methods failed to work, try the GUI method highlighted below.

Method 2: Uninstalling software using the Ubuntu Software Center (GUI method)

If you prefer to accomplish activities graphically, you can uninstall software using the “Ubuntu Software Center” tool. It is a reasonably simple and uncomplicated method of removing programs. Ubuntu Software Center also allows you to uninstall all of Ubuntu’s Native, Snap, and Flatpak packages.  Uninstalling software using Ubuntu Software is very identical to uninstalling applications on Windows. So, for new Ubuntu users, Ubuntu Software is the best place to start. Perform the steps listed below to get it done.

  1. Click the “System (Windows)” button and type “Ubuntu Software” into the search bar. This icon should appear in the results. To open it, click on it.
    launch ubuntu software

    Launch Ubuntu Software

  2. Once you’ve launched Ubuntu Software, navigate to the “installed” option at the top. This will take you to the section that lists all of your installed apps.
    installed section

    installed section

  3. Scroll through the list until you find the program you want to delete. When you’ve found the app you wish to, click the “Uninstall” button to begin the uninstallation process.
    uninstall audacity

    uninstall Audacity

  4. When you click the delete option to begin the uninstallation, you will be prompted to provide your account password. This procedure will be performed for each program you choose to uninstall.
    password prompt

    password prompt

  5. If prompted, confirm your decision and click Remove again, or click OK. The prompt you see may differ slightly based on your Ubuntu version.

That’s it. Your Ubuntu software has now been uninstalled from your workstation. Close the Ubuntu Software Center application.

You may also like

2 comments

Jim May 14, 2019 - 1:03 PM

I can launch my apps from the Icons on my desktop, my menu, I can pin them to the task bar and launch them from there, and I can launch them from the terminal if I so desire (which I don’t). I can left click the icon to launch them, or right click the icon to get a list of things to do, including launching them. So really, I can’t imagine why I would want an app to launch my apps?

Reply
dragonmouth December 12, 2020 - 9:29 AM

That is very interesting to read. Every time I have tried to uninstall any packages that were installed during the default install, such as ‘fortune’, ‘cowsay’ or any of the hundreds of langyage packs, I am informed by Synaptic that “ubuntu-minimal” file will also be uninstalled. With that file uninstalled, the system will become inoperable.

Reply

Leave a Comment

fl_logo_v3_footer

ENHANCE YOUR LINUX EXPERIENCE.



FOSS Linux is a leading resource for Linux enthusiasts and professionals alike. With a focus on providing the best Linux tutorials, open-source apps, news, and reviews written by team of expert authors. FOSS Linux is the go-to source for all things Linux.

Whether you’re a beginner or an experienced user, FOSS Linux has something for everyone.

Follow Us

Subscribe

©2016-2023 FOSS LINUX

A PART OF VIBRANT LEAF MEDIA COMPANY.

ALL RIGHTS RESERVED.

“Linux” is the registered trademark by Linus Torvalds in the U.S. and other countries.