有两个主要区别。我正在运行 Lion,并且正在尝试卸载PostgreSQL 9.0.4。我查看了最后一个问题及其引用的链接,但在运行此命令时没有找到名为“uninstall-postgresql”的文件:
sudo find / -name "*uninstall-*"
所以,我认为这意味着 9.0.4 的卸载过程与 8.x 的不同。
我在不同的地方看到了几篇描述手动卸载方法的帖子,但同样,我的机器上不存在一些引用的目录/文件。
您可以提供的任何帮助或指导将不胜感激。
仅供参考,这是其他海报用于从雪豹卸载 postgres 的链接。当我尝试单步执行这些命令时,它们中的大多数都被“找不到命令”的某些变体所窒息。
更新:
除了brew uninstall postgres,我应该手动删除以下任何文件/目录吗?请记住,我想彻底清除板岩,没有数据文件/数据库表或任何东西。
brew uninstall postgres
> sudo find / -name "*postgres*" find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory /Library/Ruby/Gems/1.8/doc/activerecord-3.1.1/rdoc/lib/active_record/connection_adapters/postgresql_adapter_rb.html /Library/Ruby/Gems/1.8/doc/activerecord-3.1.1/ri/ActiveRecord/ConnectionAdapters/PostgreSQLAdapter/postgresql_version-i.ri /Library/Ruby/Gems/1.8/doc/arel-2.2.1/rdoc/lib/arel/visitors/postgresql_rb.html /Library/Ruby/Gems/1.8/gems/activerecord-3.1.1/lib/active_record/connection_adapters/postgresql_adapter.rb /Library/Ruby/Gems/1.8/gems/arel-2.2.1/lib/arel/visitors/postgresql.rb /Library/Ruby/Gems/1.8/gems/arel-2.2.1/test/visitors/test_postgres.rb /Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/generators/rails/app/templates/config/databases/jdbcpostgresql.yml /Library/Ruby/Gems/1.8/gems/railties-3.1.1/lib/rails/generators/rails/app/templates/config/databases/postgresql.yml /Library/WebServer/Documents/postgresql /Library/WebServer/Documents/postgresql/html/app-postgres.html /Library/WebServer/Documents/postgresql/html/postgres-user.html /private/etc/apache2/users/postgres.conf /private/var/db/dslocal/nodes/Default/groups/_postgres.plist /private/var/db/dslocal/nodes/Default/sharepoints/postgres's Public Folder.plist /private/var/db/dslocal/nodes/Default/users/_postgres.plist /private/var/db/dslocal/nodes/Default/users/postgres.plist /System/Library/DirectoryServices/DefaultLocalDB/Default/groups/_postgres.plist /System/Library/DirectoryServices/DefaultLocalDB/Default/users/_postgres.plist /Users/postgres /Users/remcat/dev/working/startwire/vendor/plugins/foreign_keys/lib/foreign_keys/postgresql_adapter.rb /Users/remcat/Library/Application Support/CrashReporter/postgres_DCCEF98F-4602-5FF7-964F-5E717AC007B4.plist /Users/remcat/Library/Caches/Homebrew/postgresql-9.0.4.tar.bz2 /Users/remcat/Library/Caches/Metadata/Safari/History/http:%2F%2Fwww.postgresql.org%2Fdocs%2Fcurrent%2Fstatic%2Findex.html.webhistory /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/CrashReporter/postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/.postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash.plist /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194716_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194742_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194757_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-194958_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-203352_Ramys-MacBook-Pro.crash /Users/remcat/Library/Logs/DiagnosticReports/postgres_2011-11-06-203359_Ramys-MacBook-Pro.crash /Users/remcat/Library/Saved Application State/org.postgresql.pgadmin.savedState /usr/bin/postgres_real /usr/include/postgres_ext.h /usr/include/postgresql /usr/include/postgresql/internal/postgres_fe.h /usr/include/postgresql/server/postgres.h /usr/include/postgresql/server/postgres_ext.h /usr/include/postgresql/server/postgres_fe.h /usr/lib/postgresql /usr/local/Library/Aliases/postgres /usr/local/Library/Formula/postgresql.rb /usr/local/var/postgres /usr/local/var/postgres/postgresql.conf /usr/share/devicemgr/backend/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb /usr/share/devicemgr/backend/vendor/rails/railties/configs/databases/postgresql.yml /usr/share/devicemgr/webserver/gems/gems/eventmachine-0.12.10/lib/em/protocols/postgres3.rb /usr/share/man/man1/postgres.1.gz /usr/share/postgresql /usr/share/postgresql/postgres.bki /usr/share/postgresql/postgres.description /usr/share/postgresql/postgres.shdescription /usr/share/postgresql/postgresql.conf /usr/share/postgresql/postgresql.conf.sample
假设您按照检查 postgresql 服务器 Mac OS X 的状态以及如何在 mac os x 上启动 postgresql 服务器homebrew中的引用安装了 PostgreSQL :您可以使用该命令。brew uninstall postgresql
homebrew
brew uninstall postgresql
如果您使用EnterpriseDB 安装程序,
如果您按照Postgres 主网站上的“下载”链接,您将获得 EnterpriseDB 安装程序。Postgres 团队仅发布源代码,因此EnterpriseDB.com 公司构建安装程序是出于对社区的礼貌。
您可能还使用过Postgres.app.
Postgres.app
这个可双击的 Mac 应用程序包含 Postgres 引擎。