There are so many reasons for us to uninstall a program / application from our operating system, both from the desktop environment or either server environment. Some of our reasons for uninstalling applications include: Lack of disk space for priority applications, disruption of system performance or security problems that arise. Removing applications / programs on various operating systems can be said to be the same where the application will be removed from the disk and system registry and if it is still in memory, then the application will be removed from memory first.
In this article, we will discuss how to uninstall applications on the Linux operating system Ubuntu 20.04 desktop environment. There are two methods for uninstalling applications from Ubuntu, namely via the GUI called as Ubuntu Software Manager and command line.
Uninstall Program/package via Ubuntu Software
In this section we will be describing how to uninstall applications/programs from Ubuntu 20.04 using Ubuntu Software Manger. Here’s the steps.
1. Clik the Ubuntu Software icon on the main menu.
2. Then we will be prompted with a dialog box containing the list of Applications., then we click the ‘Installed’ tab to select the program/application that we will remove.
3. For the example of “uninstall case” we have selected the Gnome Mahjongg applicaton to be removed. Than the new dialog box will be appeared as screenshot below. On this dialog box, there is a ‘Remove’ button to be clicked.
4. After clicking the ‘Remove‘ button, will appear the confirmation dialog box. Asking the confirmation once again. Then we clikc ‘Remove’ to uninstall GNOME Mhajongg application.
5. Then we will be asked the authentication code for continue uninstallation process. We have to supply the right password for this purpose.
After all steps was fulfilled than the application to be removed and will be disappear from our Ubuntu system.
Uninstall Program via command line
Another way to uninstall programs/application from Ubuntu (in this case using Ubuntu 20.04 Focal Foss) is using command line. To uninstall program from an operating system we have the right privilege in doing it. In this example we will remove the GNOME Mahjongg application.
1. Find the application using dpkg –list commad line, to ensure the right apps to be removed.
ramans@otodiginet:~$ dpkg --list | grep mahjongg
ii gnome-mahjongg 1:3.36.1-1 amd64 classic Eastern tile game for GNOME
2. After we got the rightname, than remove it using apt-get remove <applicationg-name> command line.
ramans@otodiginet:~$ sudo apt-get remove gnome-mahjongg
Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: gnome-mahjongg 0 upgraded, 0 newly installed, 1 to remove and 135 not upgraded. After this operation, 3,441 kB disk space will be freed. Do you want to continue? [Y/n] Y (Reading database ... 211189 files and directories currently installed.) Removing gnome-mahjongg (1:3.36.1-1) ... Processing triggers for mime-support (3.64ubuntu1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for gnome-menus (3.36.0-1ubuntu1) ... Processing triggers for libglib2.0-0:amd64 (2.64.2-1~fakesync1) ... Processing triggers for man-db (2.9.1-1) ... Processing triggers for desktop-file-utils (0.24-1ubuntu2) ... ramans@otodiginet:~$ dpkg --list | grep mahjongg
3. To unsure the program was remove, than once again do the dpkg –list | grep mahjongg command line.
We also could uninstall multiple applications using the apt remove command line, the syntax is as below :
ramans@otodiginet:~$ sudo apt remove application_name1 application_name2 application_name<n>
If we want to remove the applications including all its files, we have to use purge command line instead of remove :
ramans@otodiginet:~$ sudo apt purge application_name1
Uninstall Using snap Command line
Sometimes the applications that we list are not found in search results by using the apt command dpkg –list or sudo apt list –installed. It is possible that the applications were installed as a snap package. So to uninstall this application we must use the ‘snap‘ command line.
ramans@otodiginet:/$ snap list
For removing the application we will use the command line below.
ramans@otodiginet:/$ sudo snap remove application_name
On this article, we have learnt how to uninstall applications/programs on Ubuntu system using several techniques, namely : GUI via Ubuntu Software and command line, using sudo apt remove , sudo apt purge and sudo apt snap.