How to Uninstall Programs from Ubuntu System

How to Uninstall Programs from Ubuntu System
How to Uninstall Programs from Ubuntu System

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.

How to Uninstall Programs from Ubuntu System - Activities
How to Uninstall Programs from Ubuntu System – Activities

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

How to Uninstall Programs from Ubuntu System - Ubuntu Software Manager
How to Uninstall Programs from Ubuntu System – Ubuntu Software Manager

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

How to Uninstall Programs from Ubuntu System - Install programs
How to Uninstall Programs from Ubuntu System – Install programs

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.

How to Uninstall Programs from Ubuntu System - Install programs - Confirm Uninstallation
How to Uninstall Programs from Ubuntu System – Install programs – Confirm Uninstallation

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

How to Uninstall Programs from Ubuntu System - Install programs - Enter password
How to Uninstall Programs from Ubuntu System – Install programs – Enter 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:

How to Uninstall Programs from Ubuntu System - find the package name
How to Uninstall Programs from Ubuntu System – find the package name

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.

How to Uninstall Programs from Ubuntu System - sudo apt-get remove
How to Uninstall Programs from Ubuntu System – sudo apt-get remove

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.

How to Uninstall Programs from Ubuntu System - sudo apt-get purge
How to Uninstall Programs from Ubuntu System – sudo apt-get purge

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.

LEAVE A REPLY

Please enter your comment!
Please enter your name here