How to Uninstall Deb Packages in Ubuntu

Installing applications from a deb file is quite simple. You double click on it and it opens in the Software Center application and you install it from there.

But what about uninstalling a .deb package in Ubuntu or Debian? How do you remove the package you installed some time back.

While there are several ifs and buts around it, the simplest and most reliable way of deleting a deb file is by using the apt remove command.

sudo apt remove program_name

As you can see, you need to know the exact package name here. This may not always be straightforward. For example, if you install Google Chrome on Ubuntu, the program is known as ‘google-chrome-stable’ in the command line. Did you already know that? I guess not.

In this tutorial, I’ll go into detail about finding the exact package name and then using it to remove the application. I’ll also discuss using a graphical method for deleting .deb packages.

Removing package installed via deb files from Ubuntu

Before I show you how to remove deb packages from the command line, let’s just quickly look at it in the Software Center application.

Method 1: Check if the application can be removed from the software center

Ubuntu has the Software Center GUI application that allows to search for applications, install them and remove them.

The Software Center may not show the application installed when you search for it.

Looking for applications installed via deb file in Ubuntu Software Center
Some installed applications can be found in the ‘installed’ tab of the Software Center

If you find it, you can remove the application by clicking the trash icon or remove button.

list the installed applications with apt command and use grep to search for the application name:

apt list --installed | grep -i possible_package_name

For example, you can intelligently guess that the Google Chrome package should have chrome in its name. You may search it like this:

apt list --installed | grep -i chrome

You may get more than one result in some cases.

apt info exact_package_name

Once you have the exact package name, you can delete it using the apt remove command.

sudo apt remove exact_package_name

You can also use apt-get remove or dpkg uninstall commands.

Synaptic Package Manager. Before GNOME created its graphical package manager in the form of the Software Center, Synaptic was the default GUI package manager in Ubuntu and many other distributions.

It is still the recommended tool on the Xfce desktop environment.

Install it first:

sudo apt install synaptic

Open Synaptic and search for the package name. Look for the installed packages that are marked green. Right-click on them and click on ‘mark for removal’. Hit apply after that.

Leave a Reply

Your email address will not be published. Required fields are marked *

Chat Links

Official Links.

1. Chat 1.
2. Chat 2.

Alternative Mirror Links.

1. KiwiIRC 1.
2. KiwiIRC 2.

Other Web Clients.

1. IrcCloud.

Recent Posts

Archives

Super Club Radio

Mighty Deals