
我安装了 postgres。它创建了一个用户帐户。我不再需要 postgres。我需要采取哪些步骤才能从 Ubuntu 14.04 中完全卸载它?(我没有通过软件中心安装该软件。
答案1
第一的:
执行以下命令:
sudo apt-get purge postgres
审查要进行的更改,如果您满意,请接受更改并继续。
下一个:
像这样从 /etc/apt/sources.list.d 中删除存储库:
sudo rm /etc/apt/sources.list.d/pgdg.list
最后:
sudo apt-get update
sudo apt-get autoclean
sudo apt-get autoremove
完毕。