我一直在试图让通过以下问题中的答案来实现这个目标:
...but,他们没有工作。所以,这是我试过的.另外.
。
me@myMac:~$ cd /Library/PostgreSQL/14
me@myMac:/Library/PostgreSQL/14$ ./uninstall-postgresql.app/
-bash: ./uninstall-postgresql.app/: is a directory me@myMac:/Library/PostgreSQL/14$ open ./uninstall-postgresql.app/
LSOpenURLsWithRole() failed with error -10810 for the file /Library/PostgreSQL/14/uninstall-postgresql.app. me@myMac:/Library/PostgreSQL/14$ open -a ./uninstall-postgresql.app/
Unable to find application named './uninstall-postgresql.app/' me@myMac:/Library/PostgreSQL/14$ open -a uninstall-postgresql.app/
Unable to find application named 'uninstall-postgresql.app/' me@myMac:/Library/PostgreSQL/14$ sudo open uninstall-postgresql.app/
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
install install_name_tool installvst
install-info installer me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ installer
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
-bash: installbuilder.sh: command not found 发布于 2022-10-28 17:24:43
因为我无法使用以下命令运行/找到installbuilder.sh .
me@myMac:/Library/PostgreSQL/14/uninstall-postgresql.app/Contents/MacOS$ installbuilder.sh
-bash: installbuilder.sh: command not found ...as在我的操作中的其他答案表明,我继续尝试以下步骤:
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
./installbuilder.sh无法初始化安装程序
./uninstall-postgresql用法:./uninstall-postgresql installerName args .
./uninstall-postgresql osx-x86_64瞧!


此时,
列出它们
sudo rm -rf /Library/PostgreSQL
sudo rm /etc/postgres-reg.ini
- 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.sudo rm /etc/sysctl.conf
应该就这样了!卸载向导将删除所有图标和启动应用程序文件,因此您不必担心这些。
https://stackoverflow.com/questions/74238879
复制相似问题