Skip to main content

Deinstallieren von Postgres auf Fedora

Quelle: https://kb.objectrocket.com/postgresql/how-to-completely-uninstall-postgresql-757

Be sure to elevate the privileges for any of the commands in this article with sudo if the terminal returns a Permission denied error.

Uninstall and remove PostgreSQL packages on Fedora Linux

You can use the DNF repository’s dnf command to uninstall PostgreSQL on Fedora-based distributions of Linux:

sudo dnf remove postgresql

To use a wildcard operator (*) to remove all packages with names beginning with postgres, use the following command:

sudo dnf remove postgres\*

Be sure to remove the pgsql directory as well:

sudo rm /var/lib/pgsql -d -r