This article is half-done without your Comment! *** Please share your thoughts via Comment ***
In this post, I am sharing necessary steps to remove or uninstall PostgreSQL 9.6 from Ubuntu OS. Yesterday, I was testing a few latest extensions in my PostgreSQL test server, and unfortunately, PostgreSQL Server corrupted.
As this is my test server, so simply I uninstalled full setup and again installed it.
Please check below commands which I applied to uninstalled PostgreSQL: https://qhwopca.weebly.com/best-transcription-app-mac.html.
First check Postgres related folders:
Result:
2 4 6 | ii pgdg-keyring 2014.1 all keyring for apt.postgresql.org ii postgresql-9.6 9.6.1-2.pgdg14.04+1 amd64 object-relational SQL database, version 9.6 server ii postgresql-client-9.6 9.6.1-2.pgdg14.04+1 amd64 front-end programs for PostgreSQL 9.6 ii postgresql-client-common 178.pgdg14.04+1 all manager for multiple PostgreSQL client versions ii postgresql-common 178.pgdg14.04+1 all PostgreSQL database-cluster manager ii postgresql-contrib-9.6 9.6.1-2.pgdg14.04+1 amd64 additional facilities for PostgreSQL |
Command to remove few postgres folders:
Removing existing PostgreSQL Installations. Postgres.app can’t start when another server is already running on the same port (default: 5432). We recommend to uninstall other PostgreSQL installations before using Postgres.app. Before you uninstall, make sure to back up any data you might have stored in the database using pgdump. In this post, I am sharing necessary steps to remove or uninstall PostgreSQL 9.6 from Ubuntu OS. Yesterday, I was testing a few latest extensions in my PostgreSQL test server, and unfortunately, PostgreSQL Server corrupted. As this is my test server, so simply I. 这个问题可能看起来像一个副本: 如何卸载我的Mac上的postgresql(运行雪豹),但是,有两个主要的区别。 我正在运行狮子,我试图卸载PostgreSQL 9.0.4。 我已经看了最后一个问题和它引用的链接,但是当我运行这个命令时,我没有find一个名为“uninstall-postgresql. This blog post explains very well: (just replace 9.X by your version. If installed PostgreSQL with homebrew, enter brew uninstall postgresql. If you used the EnterpriseDB installer, follow the following step.
ubuntu@ip:~/anvesh$ sudo apt-get --purge remove postgresql postgresql-doc |
Now check again Postgres related folders:
Result:
2 | ii pgdg-keyring 2014.1 all keyring for apt.postgresql.org ii postgresql-client-9.6 9.6.1-2.pgdg14.04+1 amd64 front-end programs for PostgreSQL 9.6 ii postgresql-client-common 178.pgdg14.04+1 all manager for multiple PostgreSQL client versions |
Now remove all other pending folders:
ubuntu@ip:~/anvesh$ sudo apt-get --purge remove postgresql postgresql-client-9.6 postgresql-common pgdg-keyring |
Now PostgreSQL is uninstalled so confirmt that PSQL is running or not:
Uninstall Postgresql 9.6 Mac
2 | The program 'psql' is currently not installed. You can install it by typing: |
Now check the Postgres service status:
2 4 | ubuntu@ip:~/anvesh$ sudo service postgresql status Loaded: not-found (Reason: No such file or directory) |
Postgres For Mac
Please visit other related articles..
You can get macOS PostgreSQL packages from several different sources.
Interactive installer by EDB
Download the installercertified by EDB for all supported PostgreSQL versions. Messagibg apps for mac.
This installer includes the PostgreSQL server, pgAdmin; a graphical tool for managing and developingyour databases, and StackBuilder; a package manager that can be used to download and installadditional PostgreSQL tools and drivers. Stackbuilder includes management,integration, migration, replication, geospatial, connectors and other tools.
This installer can run in graphical, command line, or silent install modes.
Uninstall Postgres.app
The installer is designed to be a straightforward, fast way to get up and running withPostgreSQL on macOS.
Advanced users can also download azip archiveof the binaries, without the installer.This download is intended for users who wish to include PostgreSQL as part of another application installer.
Platform support
The installers are tested by EDB on the following platforms. They will generally work on newer versions of macOS as well:
PostgreSQL Version | 64-bit macOS Platforms |
---|---|
13 | 10.13 - 10.15 |
12 | 10.12 - 10.14 |
11 | 10.12 - 10.14 |
10 | 10.10 - 10.12 |
9.6 | 10.10 - 10.12 |
9.5 | 10.8 - 10.10 |
Postgres.app
Postgres.app is a simple, native macOS app that runs in the menubar without the need of an installer. Open the app, and you have a PostgreSQL serverready and awaiting new connections. Close the app, and the server shuts down.
Homebrew
PostgreSQL can also be installed on macOSusing Homebrew. Please see the Homebrewdocumentation for information on how to install packages.
A listof PostgreSQLpackages can be found using the Braumeister search tool.
MacPorts
PostgreSQL packages are also available for macOS from theMacPorts Project. Please see theMacPorts documentation for information on how to install ports.
A list ofPostgreSQL packagescan be found using the portfiles search tool on the MacPorts website.
Fink
Uninstall Postgresql Mac
PostgreSQL packages are available for macOS from theFink Project.Please see the Fink documentation for information on how to install packages.
A list ofPostgreSQL packagescan be found using the package search tool on the Fink website.