如何卸载 Postgres?

如何卸载 Postgres?

我如何才能完全卸载 postgres 并重新安装它。我尝试过:

sudo apt-get --purge remove postgresql postgresql-doc postgresql-common

但我得到了:

Package postgresql is not installed, so not removed
Package postgresql-doc is not installed, so not removed
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 postgresql-client-8.4 : Depends: postgresql-client-common (>= 104~) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

答案1

我不需要重新安装,我只需要apt-get -f install安装客户端常用工具。

相关内容