Ubuntu Uninstall deb Package

How do I uninstall deb packages under Ubuntu Linux using GUI or CLI (command line) methods?

Type the following command at shell prompt to uninstall any installed package (open a terminal and enter command)

sudo apt-get remove pakcageName

sudo apt-get remove pakcageName

To remove a package called samba-common-bin, enter:

sudo apt-get remove samba-common-bin

sudo apt-get remove samba-common-bin

Sample outputs:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
nautilus-share samba-common-bin
0 upgraded, 0 newly installed, 2 to remove and 1 not upgraded.
After this operation, 13.8MB disk space will be freed.
Do you want to continue [Y/n]?

How Do I Find Out List Of ALL Installed Packages?

Type the following command:

dpkg --list
dpkg --list | grep -i apache

dpkg –list
dpkg –list | grep -i apache

GUI Tool

The Synaptic Package Manager enables you to install software onto your computer and to manage the software, that already installed. You can delete or remove package with this tool. To start this tool:
Click on System > Administration > Synaptic Package Manager

Fig.01:Ubuntu Synaptic Package Manager Remove Package

To remove a packages follow these steps

  1. Double click on the name of the installed package in the package list.
  2. Click on the status icon of the package and choose Mark for Removal from the menu.
    Right click on the package and choose Remove from the context menu.
    Select the package and press the key Delete.
  3. If the removal of the package(s) requires additional changes, you will be asked for confirmation. To also mark the additional changes click on the button Mark. Apply the marked changes to actually remove the package(s) so Click on Apply in the toolbar. You are asked for confirmation. Check the summarized changes that will be applied. To continue with the actual removal confirm the changes click on Apply. During the processing of the changes you will see a progressbar. Wait until the changes have been applied. This can take some time depending on the number of changes. Afterwards you will be returned to the main window.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

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

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts