[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Can't get rid of postgresql

I've got a munged up postgresql configuration on my machine, and I'd like to get rid of the whole thing. Don't care about data, I just want to remove it all and start over.

Thing is, when I try to apt-get remove postgresql or dpkg -P postgresql, the script that runs before removal wants to start postmaster, and fails when it can't start.

I've looked through the docs for some sort of override to force removal, but nothing has jumped out at me. Is there some way I can tell apt or dpkg to ignore the prerm script? I imagine I could dpkg -L it and delete the files that way, but I imagine that'll leave my system config in a messed up state.

Can anyone provide any hints on how to get rid of a package that won't uninstall?

Reply to: