首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >HowTo:如果我使用了EnterpriseDB.com GUI安装程序,就可以从MacOs完全卸载EnterpriseDB.com

HowTo:如果我使用了EnterpriseDB.com GUI安装程序,就可以从MacOs完全卸载EnterpriseDB.com
EN

Stack Overflow用户
提问于 2022-10-28 17:24:43
回答 1查看 31关注 0票数 -1

我一直在试图让通过以下问题中的答案来实现这个目标:

...but,他们没有工作。所以,这是我试过的.另外.

me@myMac:~$ cd /Library/PostgreSQL/14

me@myMac:/Library/PostgreSQL/14$ ./uninstall-postgresql.app/

代码语言:javascript
复制
-bash: ./uninstall-postgresql.app/: is a directory  

me@myMac:/Library/PostgreSQL/14$ open ./uninstall-postgresql.app/

代码语言:javascript
复制
LSOpenURLsWithRole() failed with error -10810 for the file /Library/PostgreSQL/14/uninstall-postgresql.app.  

me@myMac:/Library/PostgreSQL/14$ open -a ./uninstall-postgresql.app/

代码语言:javascript
复制
Unable to find application named './uninstall-postgresql.app/'  

me@myMac:/Library/PostgreSQL/14$ open -a uninstall-postgresql.app/

代码语言:javascript
复制
Unable to find application named 'uninstall-postgresql.app/'  

me@myMac:/Library/PostgreSQL/14$ sudo open uninstall-postgresql.app/

代码语言:javascript
复制
Password:
LSOpenURLsWithRole() failed with error -10810 for the file /Library/PostgreSQL/14/uninstall-postgresql.app.  

me@myMac:/Library/PostgreSQL/14$ cd /Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS/

me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ install

代码语言:javascript
复制
install            install_name_tool  installvst
install-info       installer  

me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ installer

代码语言:javascript
复制
Usage: installer [-help] [-dominfo] [-volinfo] [-pkginfo] [-allowUntrusted] [-dumplog]
                 [-verbose | -verboseR] [-vers] [-config] [-plist]
                 [-file <pathToFile>] [-lang <ISOLanguageCode>] [-listiso]
                 [-showChoicesXML] [-applyChoiceChangesXML <pathToFile>]
                 [-showChoicesAfterApplyingChangesXML <pathtoFile>]
                 -pkg <pathToPackage>
                 -target <[DomainKey|MountPoint]>  

me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ installbuilder.sh

代码语言:javascript
复制
-bash: installbuilder.sh: command not found  
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2022-10-28 17:24:43

因为我无法使用以下命令运行/找到installbuilder.sh .

me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ installbuilder.sh

代码语言:javascript
复制
-bash: installbuilder.sh: command not found  

...as在我的操作中的其他答案表明,我继续尝试以下步骤:

  1. me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ ls -la

总计3112 drwxr-xr-x5根守护进程1609月23日10:48 ./ drwxr-xr-x5根守护进程160 9月23 09:18 ./rwxr-xr-x1根守护进程673 9月23日10:48 installbuilder.sh* -rwxr-xr-xr-x1根守护进程1449456

  1. me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ ./installbuilder.sh

无法初始化安装程序

  1. me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ ./uninstall-postgresql

用法:./uninstall-postgresql installerName args .

  1. me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ ./uninstall-postgresql osx-x86_64

瞧!

  1. 启动了卸载GUI

  1. 选择卸载所有/删除整个安装

  1. 卸载程序将执行它的任务,然后提示您如下:

此时,

  1. 需要遵循这个PREVIOUS StackOverflow ANSWER中提供的步骤--@user1181328的答案的步骤3到6。我会在这里为convenience:

列出它们

  1. 删除PostgreSQL和数据文件夹。向导将通知您这些内容未被删除。

sudo rm -rf /Library/PostgreSQL

  1. 删除ini文件:

sudo rm /etc/postgres-reg.ini

  1. 删除PostgreSQL用户:

代码语言:javascript
复制
- using System Preferences -> Users & Groups.
- Unlock the settings panel by clicking on the padlock and entering your password.
- Select the PostgreSQL user and click on the minus button.

  1. 还原共享内存设置:

sudo rm /etc/sysctl.conf

应该就这样了!卸载向导将删除所有图标和启动应用程序文件,因此您不必担心这些。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/74238879

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档