How to remove Postgresql from Debian


I would like to uninstall postgresql, but when I try, I am prompted to remove virtualmin-base…

# apt-get -s remove postgresql
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages will be REMOVED:
postgresql virtualmin-base
0 upgraded, 0 newly installed, 2 to remove
Remv virtualmin-base [1.0-36.1]
Remv postgresql [9.1+134wheezy4]

QUESTION: How can I remove Postgresql from Debian?


It unfortunately isn’t really going to work in your case, as virtualmin-base on that distro/version depends on it.

Would it work to disable that service though? You can disable the running service in Webmin -> System -> Bootup and Shutdown.

After doing that, you can go into Virtualmin -> System Settings -> Features and Plugins, and there, you can disable the actual Virtualmin feature.