HomeBlogsHow to Uninstall Deb Packages in Ubuntu Linux

How to Uninstall Deb Packages in Ubuntu Linux

In this article, we will show you How to Uninstall Deb Packages in Ubuntu Linux. Windows and macOS are two of the most popular operating systems available today. However, Linux has been gaining more popularity each year not only among developers, but average consumers as well. Linux is a great choice if you are interested in building your VPS or trying out a free operating system. It comes in various distributions, such as Fedora, Debian, and CentOS.

We will examine the removal of packages. On Debian or Ubuntu Linux, uninstalling packages via the console is a simple process, but your user must be listed in the sudoers group or you need root access. To remove or clean up packages from your system, use one of the following methods. To get rid of unnecessary software, delete the cache files. Similar to how windows packages have.exe file extensions, Linux operating systems based on Debian or Ubuntu also employ this format.

Deb extensions or packages. Every Linux operating system built on Debian uses Debian-based packages (.DEB) to install or remove software. Using the Ubuntu graphical user interface or command line tool, you can install or uninstall Deb extension files or packages. To manually install their Linux software, you must either obtain the. DEB or Debian files/packages from the several companies whose products are not included in the Ubuntu official repository.

How to Uninstall Deb Packages in Ubuntu Linux

Command Line Methods for Installing Deb Files/Packages

There are multiple package management systems, you can use to install the deb packages. You can see them in the following with their pros and cons.

Install Deb Files with apt

Step 1: You can install the deb files with apt by appending the full deb file path followed by the “./” symbol.

sudo apt install ./slack-desktop-4.15.0-amd64.deb

Step 2: The apt command resolves all the dependencies by itself, so you do not need to worry about such complications.

Install Deb Files with gdebi

gdebi is a tool used for installing deb files, but it does not come installed in Ubuntu, so you have to install it separately to use it.

To install gdebi, run the following command.

sudo apt install gdeb

After gdebi is installed, you can use the following command to install the deb package.

sudo gdebi slack-desktop-4.15.0-amd64.deb

Like apt, gdebi also resolves package dependencies on its own.

Install the Deb Files with dpkg

Step 1: You can install deb packages by running dpkg with the -i option.

sudo dpkg -i ./slack-desktop-4.15.0-amd64.deb

dpkg does not resolve package dependencies, so if any dependency errors occur, you have to resolve them manually using the following command.

sudo apt install -f

Command Line Methods for Uninstalling Deb Files/Packages

Step 1: You can remove the deb package installation with the following apt command.

sudo apt remove slack-desktop

Step 2: To uninstall deb packages that are installed through dpkg, run the following command.

dpkg -r slack-desktop

Graphical User Interface Method For Installing & Uninstalling Deb Files/Packages

To install the deb packages directly through the gui, click on the deb file. You will see your file open in a window like the following. Click on Install and authenticate. Similarly, open the deb file to uninstall the file and click on Remove. Confirm the action by clicking on Remove in the following Command prompt.

Final Words

We hope you like this article on How to Uninstall Deb Packages in Ubuntu Linux. Now that you know how to identify and uninstall packages on install Ubuntu Linux, you should be able to use them effectively. Basic Debian commands that every user needs to learn are covered in this course. If you like the article do share with others.

I hope you understand this article, How to Uninstall Deb Packages in Ubuntu Linux.

James Hogan
James Hogan
James Hogan is a senior staff writer at Bollyinside, where he has been covering various topics, including laptops, gaming gear, keyboards, storage, and more. During that period, they evaluated hundreds of laptops and thousands of accessories and built a collection of entirely too many mechanical keyboards for their own use.


Must Read

- Advertisment -