The Complete Guide to Uninstalling Software Packages on Ubuntu – You may often install applications or software on your Ubuntu, and after trying it, you may feel the software or applications are not suitable and you then decide to uninstall the software package.
In this article, I will show you how to uninstall a software package using a graphical display that is in the “Ubuntu Software Center” and / or choose to uninstall a software package via the command line, using the command
Only root or users with sudo privileges can remove or uninstall software packages from Ubuntu. Read → How to Create a Sudo User and a Sudo Group on Ubuntu.
Uninstall Software Packages using the Ubuntu Software Center
If using the command line feels difficult for you, you can uninstall application software through the Ubuntu Software Center (USC). This utility provides a graphical interface for finding, installing, and removing installed applications.
- Please enter Activities, search “Ubuntu SoftwareAnd click the orange USC icon. This will open the USC tool.
- To get a list of all installed applications, click on the tab “InstalledIn the top navigation bar.
- Scroll down until you find the application you want to remove and click the button “RemoveNext to it.
Ubuntu software tools only show installed applications that have a graphical user interface (GUI). If you can’t find the package you want to remove, then you will need to delete the package from the command line.
Uninstall Software Package using Command Line
Everything you can do using the GUI tools, you can do from the command line. In fact, the command line gives you more options and control for uninstalling software packages.
You can open your terminal using
Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.
Before uninstalling a software package, you must first find the exact package name of any software that you have previously installed. To see a list of all software packages installed on your Ubuntu (How to see a list of packages installed on Ubuntu), please type the following command:
$ sudo apt list --installed
This command will print a long list of installed packages. It might be a good idea to show less output to make it easier to read and find which software you are looking for. Or you can use
grep to filter results.
On Ubuntu, Debian and related Linux distributions you can install, update, uninstall and manage software packages using command-line utilities.
apt-get. The syntax of both commands is identical.
To remove or uninstall an installed package, run the following command:
$ sudo apt remove package_name
package_name with the name of the package software you wish to remove.
$ sudo apt-get remove package_name
You can also delete several software packages at once. Package names must be separated by spaces:
$ sudo apt remove package1 package2
remove uninstall the given package, but there may be some package files left behind. If you want to clean the package including all of its files, use the command
purge of the
$ sudo apt purge package_name
Uninstall Snap Package
If the application you want to remove is not listed when running the list
sudo apt list --installed then maybe it’s installed as a snap package.
To list all packages
snap installed, run the following command:
$ snap list
Once you know the exact package name you can delete it by typing:
$ sudo snap remove package_name
Uninstall Unused Packages
Whenever you install a new package that depends on another package, the package dependencies are also installed. When packages are removed, package dependencies will remain on the system. This leftover package is no longer used by anything else, so you can delete it.
You can remove packages you don’t need by:
$ sudo apt autoremove
I have shown you how to remove or uninstall application software from your Ubuntu via the command line and using the Ubuntu Software Center. Knowing how to remove packages is an important part of Linux system administration.
There are several reasons why you might want to remove previously installed packages from your Ubuntu. For example, you may need to remove applications you no longer need or to free up your disk space which may be full and also because you want to make your Ubuntu run faster.