×


Uninstall Software in Ubuntu 18.04 using Putty ssh tool

Need to Uninstall Software in Ubuntu 18.04 using Putty ssh tool ?

This guide is for you.


Here at Ibmi Media, as part of our Server Management Services, we regularly help our Customers to perform Software Installation tasks on their Servers.

In this context, you shall learn how to uninstall Software in Ubuntu.


Ways to to uninstall software in Ubuntu 18.04 ?

Uninstalling software in Ubuntu 18.04 using a terminal can be done with several techniques.


Let us see some methods which can be used to perform this task;

i.  Apt (apt-get)

ii.  Synaptic

iii.  DPKG

iv.  Source

v.  Git

vi. Snapd

vii. Ubuntu Software Manager

viii. Flatpak


Each of these methods has specific methods to uninstall software. So we will go into them briefly.


1. Apt Uninstall

a. First, we need to find the Installed Software list.

ii. We can use the apt or dpkg command to get a list of all installed packages

iii. Give the following command in the terminal and press “Enter”.

$ apt list --installed
$ apt-cache search packagename

or

$ dpkg --list

iv. Then we have to copy the name of the software we wish to uninstall from the list displayed.

v. And type in one of the following commands.

$ apt remove package_name
$ apt remove package_name_1 package_name_2
$ apt purge package_name

 b. Autoremove using apt

If we need to remove any dependencies such as the applications and libraries used by the software which was installed and is no longer in use, we can use the following:

$ sudo apt-get autoremove

c. Uninstall Using a PPA

To uninstall Software installed using PPA, we can use the following two commands.

$ apt-get remove numix-gtk-theme numix-icon-theme-circle
$ add-apt-repository --remove ppa:numix/ppa

The first command removes the software installed via the PPA.

And the second command removes the PPA from the sources list.


2. Synaptic Uninstall

To uninstall software using synaptic, we would open Synaptic, scroll through the list of installed applications, click on the software to highlight it, then right-click and select Mark for Removal, and finally click Apply.

Usually, this will uninstall the software, but leave the configuration files intact.

To delete the associated configuration files along with the software, select Mark for Complete Removal instead.


[Need urgent assistance in performing Linux related tasks? We can help you!]


3. DPKG Uninstall

First, to list software installed via dpkg, use one of these commands.

$ dpkg ––list
$ dpkg–query –l | less

Then we have to copy the name of the software we wish to uninstall from the list displayed.

$ dpkg–query –l | grep package_name
$ dpkg–query –l | grep *partial_name*
$ dpkg --remove packagename.

 

4. Source Uninstall

We will be able to uninstall the program by going to its extracted directory and using this command:

$ sudo make uninstall

 

5. Git Uninstall

Generally, some form of a non-standard prefix is used while configuring so that the package will be installed under a specific hierarchy, (e.g. like under /opt/git/software/).


To remove the software we can recursively delete that folder’s hierarchy.


[Need urgent assistance to install Software on Debian Server? We can help you!]


6. Snap Uninstall

Snap is usually an easy method to install or uninstall software.

We can use the following commands to locate and then remove the software.

$ snap list
$ snap remove software

 7. Ubuntu Software Manager Uninstall

To uninstall software using the Ubuntu Software Manager we can follow the steps given below:

i. First click on the icon in the Activities toolbar.

ii. Then search for, install and uninstall software.

iii. After that from the list of applications, click the software we want to uninstall, and then click the Remove button to uninstall it.


8. Flatpak Uninstall

Uninstallation option in flatpak can be used for uninstalling software.

The following commands along with the application id can be given to remove the installed Flatpak software.

$ flatpak search
$ flatpak list
$ flatpak uninstall


[Need assistance in performing Packages Installation in Ubuntu?  We can help you!]


Conclusion

This article will guide you on the different methods to #uninstall #software in #Ubuntu using the terminal or an #ssh tool such as #putty.