如何卸载从 .run 文件安装的 PostgreSQL?

Cao*_* Tu 4 uninstall postgresql

我是一个新的 Ubuntu 12.04 用户,我使用的是 64 位。

今天早上我从图形安装程序(不是从 Ubuntu 存储库)安装了 Posgresql 9.2 。现在我想卸载它,但我不知道如何。

有人请告诉我出路吗?

Jan*_*ary 5

安装程序还应该安装了一个名为uninstall-postgresql. 打开终端并运行

sudo uninstall-postgresql
Run Code Online (Sandbox Code Playgroud)

这应该有效。如果 shell 抱怨它找不到程序 ( command not found),请找到它的安装位置:

sudo updatedb
locate uninstall-postgresql
Run Code Online (Sandbox Code Playgroud)

并使用 locate 返回的完整路径运行它。

  • 在“sudo updatedb”之后,定位工作,我可以用“sudo /path/to/uninstall-postgresql”卸载。非常感谢您的帮助,一月和 Karthik T。 (2认同)