如何卸载通过终端安装的软件?

use*_*803 4 command-line software-uninstall

我使用sudo apt-get install [program name]终端中的命令安装了软件。

我应该如何通过卸载上述程序。终端?

我应该在终端中具体输入什么?

  • 该程序未出现在软件中心的已安装选项卡中
  • 它存在于软件中心,但根据中心尚未安装
  • 该程序运行良好,但使用上述命令安装时

Phi*_*ide 5

sudo apt-get remove nameOfProgram
Run Code Online (Sandbox Code Playgroud)

或者,如果您想卸载程序以及相关数据:

sudo apt-get purge nameOfProgram
Run Code Online (Sandbox Code Playgroud)

这将删除该程序。它并不总是删除为使程序工作而安装的依赖项。要清理这些包,您可以在以下之后运行:

sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)