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

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

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

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

Ubuntu Synaptic Package Manager Remove Package

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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 0 comments... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum