Uninstalling EDB Postgres Advanced Server on Linux v14

Note that after uninstalling EDB Postgres Advanced Server, the cluster data files remain intact and the service user persists. You may manually remove the cluster data and service user from the system.

Uninstalling an RPM package

You can use variations of the rpm, yum or dnf command to remove installed packages. Note that removing a package does not damage the EDB Postgres Advanced Server data directory.

Include the -e option when invoking the rpm command to remove an installed package; the command syntax is:

rpm -e <package_name>

Where package_name is the name of the package that you would like to remove.

You can use the yum remove or dnf remove command to remove a package installed by yum or dnf. To remove a package, open a terminal window, assume superuser privileges, and enter the command:

  • On RHEL or CentOS 7:

    yum remove <package_name>
  • On RHEL or Rocky Linux or AlmaLinux 8:

    dnf remove <package_name>

Where package_name is the name of the package that you want to remove.

yum and RPM don't remove a package that is required by another package. If you attempt to remove a package that satisfies a package dependency, yum or RPM provides a warning.

Note

In RHEL or Rocky Linux or AlmaLinux 8, removing a package also removes all its dependencies that are not required by other packages. To override this default behavior of RHEL or Rocky Linux or AlmaLinux 8, you must disable the clean_requirements_on_remove parameter in the /etc/yum.conf file.

To uninstall EDB Postgres Advanced Server and its dependent packages; use the following command:

  • On RHEL or CentOS 7:

    yum remove edb-as14-server*
  • On RHEL or Rocky Linux or AlmaLinux 8:

    dnf remove edb-as14-server*

Uninstalling EDB Postgres Advanced Server components on a Debian or Ubuntu host

  • To uninstall EDB Postgres Advanced Server, invoke the following command. The configuration files and data directory remains intact.

    apt-get remove edb-as14-server*
  • To uninstall EDB Postgres Advanced Server, configuration files, and data directory, invoke the following command:

    apt-get purge edb-as14-server*