[PostgreSQL Linux] Remove installed PostgreSQL in opt dir

Table of Content

[PostgreSQL Linux] Remove installed PostgreSQL in opt dir

I installed PostgreSQL through the installation file, so the installation directory is /opt/PostgreSQL/10

I tried

sudo apt-get --purge remove postgresql*

but this did not work for me.

In my case uninstaller was under /opt/PostgreSQL/10, so I cd here and run

sudo ./uninstall-postgresql

and problem solved

image

Hope that will help you

I have consulted the workaround here

https://dba.stackexchange.com/questions/51153/how-to-completely-remove-enterprisedb-installation-of-postgresql-on-ubuntu

Leave a Reply

Your email address will not be published.