How to brew remove postgres on OX Sierra

Reading from here , I want to completely remove postgres using homebrew and used brew uninstall postgresql, but I get this answer.

No such keg: /usr/local/Cellar/postgresql

I know that postgres is running, because when I run ps auxwww | grep postgres, I see /usr/local/opt/postgresql94/bin/postgres -D /usr/local/var/postgres. What am I doing wrong? I have mac sierra

+4
source share
1 answer

I was unable to remove postgresql. But finally found it. (I installed postgres using homebrew)

brew list

Find the correct name in the folder. Sort of.

postgresql94

Once you find the correct name:

sudo brew uninstall postgresql94

This should do the removal.


Another shortcut command for her is

sudo brew list | grep postgres | xargs brew uninstall
+5
source

Source: https://habr.com/ru/post/1667728/


All Articles