How To Uninstall Software Using The Ubuntu Command Line

How To Uninstall Software Using The Ubuntu Command Line
Uninstall Ubuntu Software Using The Terminal
 Uninstall Ubuntu Software Using The Terminal.

The Ubuntu terminal will give you the ultimate control for uninstalling software. 

In most cases using "Ubuntu Software" and "Synaptic" are sufficient for installing and uninstalling software.

You can, however, remove software using the terminal and there is one important command I will show you that isn't available in the graphical tools.

There are various ways to open a terminal using Ubuntu. The easiest is to press CTRL, ALT, and T at the same time.

To get a list of the applications installed on your computer run the following command:

sudo apt --installed list | more

The above commands shows a list of applications installed on your system ​one page at a time. To see the next page simply press the space bar or to quit out press the "q" key.

To remove a program run the following command:

sudo apt-get remove

Replace with the name of the package you wish to remove.

The above command works much like the "Mark for removal" option in Synaptic.

To go for the complete removal run the following command:

sudo apt-get remove --purge

As before replace with the name of the package you wish to remove.

When you install an application a list of packages that the application depends on are also installed.

When you remove an application these packages are not automatically removed. 

To remove packages that were installed as dependencies, but which no longer have the parent application, installed run the following command:

sudo apt-get autoremove

You are now armed with everything you need to know in order to remove packages and applications within Ubuntu.

原文地址:https://www.cnblogs.com/laozha/p/8410161.html