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 notable content writer recognized for his contributions to Bollyinside, where he excels in crafting informative comparison-based articles on topics like laptops, phones, and software. When he's not writing, James enjoys immersing himself in football matches and exploring the digital realm. His curiosity about the ever-evolving tech landscape drives his continuous quest for knowledge, ensuring his content remains fresh and relevant.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Related Articles

Hubspot Service Hub review 2024: a comprehensive platform

When it comes to customer support operations, HubSpot Service Hub is an all-encompassing customer service platform that is meant to...
Read more
When players on Windows 11 or 10 try to log in to Steam, they may get the error code E87....
Users of Windows 11 or 10 may find it frustrating to deal with the error number 147-0 in Microsoft Office....
The Microsoft Store is an important part of the Windows operating system because it gives users a single place to...
It can be hard to find the right balance between usefulness, durability, and cost when it comes to kitchen storage....
Both AirDroid and Vysor are well-known tools that help Android users control their devices and mirror them. One of the...