【问题标题】:unable to uninstall Postgres completely from ubuntu无法从 ubuntu 完全卸载 Postgres
【发布时间】:2015-10-30 02:27:32
【问题描述】:

我通过此链接安装了 Postgres,但现在无法完全删除它。

http://www.thegeekstuff.com/2009/04/linux-postgresql-install-and-configure-from-source/

运行时:Sudo apt-get --purge remove postgresSudo apt-get --purge remove psql 得到此响应

包'postgresql'没有安装,所以没有删除

以下软件包已自动安装,不再需要: libappindicator1 libindicator7 python-appindicator 使用“apt-get autoremove”删除它们。 0 个已升级,0 个新安装,0 个要移除,281 个未升级。

哪个psql

/usr/local/pgsql

哪个postgres

这里没有显示任何东西

我可以使用

运行 Postgres

su postgres

/usr/local/pgsql/bin/createdb 测试

【问题讨论】:

    标签: linux postgresql ubuntu


    【解决方案1】:

    您误解了二进制文件(和其他文件)来自软件包最终位于 /usr(可能还有 /var/ 等)之下,而二进制文件您或其他人本地安装到/usr/local

    因此,如果which psql 显示/usr/local/pgsql,您可能必须手动删除它,而不是通过apt-get

    另外,postgres 是一个用户,而不是你运行的二进制/程序。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-04-02
      • 2018-03-30
      • 1970-01-01
      • 1970-01-01
      • 2020-10-26
      • 2019-07-14
      • 2017-10-15
      • 1970-01-01
      相关资源
      最近更新 更多