How To Uninstall A Package Linux?

If you’re using a Linux distribution, there’s a good chance you’ll need to uninstall a package at some point. Here’s a quick guide on how to do it.

Checkout this video:


Most people use a package manager such as apt-get or yum to install and remove software on their computer. If you installed a program manually without using a package manager, you can use the rm command to remove the executable file, but this will not remove any configuration files or uninstall dependencies that were installed along with the program. In order to completely uninstall a program, you will need to use a package management tool such as apt-get or yum, or find and delete all traces of the program manually.

What is a Package?

A package is a collection of software that has been put together in an archive so that it can be installed on a Linux system. The archive usually has a .tar.gz or .rpm extension. When you install a package, the package manager extracts the files from the archive and puts them in the appropriate places on your system.

What is Linux?

Linux is a family of open source operating systems with different distributions. There are many operating systems that are based on the Linux kernel, including the popular Android mobile operating system. If you’re using a Linux-based operating system, chances are you will need to install or update software packages from time to time. This tutorial will show you how to do that using the apt package manager.

How to Uninstall a Package using the Command Line

In Linux, you can uninstall a software program or package using the command line. This is different from Windows, where you use the “add or remove programs” feature in the control panel.

To uninstall a package, you will need to know the name of the package. You can find this out by searching for it in the repository, or by looking at the list of installed packages.

Once you know the name of the package, you can use the “apt-get” command to uninstall it. For example, if you wanted to uninstall the “vim” text editor, you would type the following into the command line:

sudo apt-get remove vim

This would remove the vim package from your system.

How to Uninstall a Package using a Package Manager

There are many different ways to install software on Linux, but one of the most common and simplest methods is to use a package manager. A package manager is a program that automates the process of installing, upgrading, and removing software.

One of the most popular package managers for Linux is apt, which is used by distributions such as Debian and Ubuntu. To uninstall a package using apt, you can use the apt-get remove command. For example, if you want to uninstall the gimp package, you would run the following command:

sudo apt-get remove gimp

This will uninstall the gimp package from your system.


We have seen how to remove a package using two different methods. We can either use the rpm command or we can use yum. If you want to learn more about Linux, feel free to check out our other articles.


-How to find out what package a file belongs to in Ubuntu?

-How do I find out what a package does in Ubuntu?

-How to determine if a particular package is installed on my system?

Scroll to Top