How to Uninstall Programs from Ubuntu System

Table of Contents
Uninstall Programs from Ubuntu System
In this tutorial, you are going to learn how to uninstall programs from Ubuntu System. There are two ways to uninstall the program from the Ubuntu system. first is a Graphical User Interface (GUI) method in which programs will be removed from the system using Ubuntu Software Manager and Uninstall programs through the terminal using apt-get
command.
Prerequisites
Before you start to install Google Chrome on CentOS 7. You must have the credentials of the user with sudo privileges.
Uninstall programs through Ubuntu Software Manager using GUI
In this method, you will uninstall the software using the Ubuntu Software Manager. First, open Activities and click on Ubuntu Software icon like given below.

After launching the Ubuntu Software Manager you will see the following window:

Now click on Installed
tab to get a list of installed programs in system:

Now to remove any program from your system, click remove button at right side of the program name. For example, if you want to remove Amazon from your system then click remove button at right side of Amazon. Then you will see the following window for confirmation of removal.

Click on remove, then it will ask for the password:

After entering the correct password the program will be removed from your system completely.
Uninstall Program through Terminal (Command Line)
To uninstall program through terminal you should check the correct package name of your program then you can use two commands apt-get remove
and apt-get purge
.
First, list all installed packages using dpkg
command:
dpkg --list
From the above list find the right package and copy the name of it by selecting package name text and copying through the mouse.
You can also search your package name by using grep command like given below. To search google chrome package name just enter google
then you will see all the related packages:
dpkg --list | grep google
The output will look like:

Uninstall program using apt-get remove
apt-get remove
command removes the program package from your system but keeps the configuration files and any plugins and settings. So if you install program again you will see previous configurations.
For example, to remove curl
package run below command:
sudo apt-get remove curl
Now it will prompt you for the password. Enter the password and hit ENTER
button.
You will be asked to confirm uninstallation, type Y
and hit ENTER
to finish uninstalling the program.

Uninstall program using apt-get purge
apt-get purge
command removes the program package from your system without keeping the configuration files and any plugins and settings.
For example, to remove the curl
package run below command:
sudo apt-get purge curl
Now it will prompt you for the password. Enter the password and hit ENTER
button.
You will be asked to confirm uninstallation, type Y
and hit ENTER
to finish uninstalling the program.

Remove unnecessary dependencies using apt-get autoremove
After removing a program from your system the dependencies installed at the time of installation of the program are no longer needed so to uninstall the dependencies run below command:
sudo apt-get autoremove
You will see the list of the packages to uninstall, then type Y
and hit ENTER
to uninstall them.
Conclusion
You have successfully learned how to uninstall programs from Ubuntu System. If you have any queries please don’t forget to comment below.
LATEST POSTS
-
How to Disable SELinux on CentOS 7
-
How to Install Microsoft PowerShell 6.2.0 on Debian 10
-
How to Rename Local and Remote Branches in Git
-
How to Install Composer on Debian 10
-
How to Create Symbolic Links Using ln Command in Linux
-
How to Install Apache on Debian 9
-
How to install Krita on Debian 9
-
How to install Java on Ubuntu 18.04
-
How to Install FFmpeg on CentOS 7
-
How to Create Sudo User on Ubuntu
-
How to Install WordPress with LAMP Stack on CentOS 7
-
How to Reboot Linux System with Command Line