Re: uninstalling postgresql 13 on ubuntu 22.04? - Mailing list pgsql-general

From Ray O'Donnell
Subject Re: uninstalling postgresql 13 on ubuntu 22.04?
Date
Msg-id 010201936fad4025-074cf372-e97c-4be4-af00-d2e7e340e89b-000000@eu-west-1.amazonses.com
Whole thread Raw
In response to uninstalling postgresql 13 on ubuntu 22.04?  (Richard Welty <rwelty@salesium.com>)
List pgsql-general
On 27/11/2024 21:54, Richard Welty wrote:
i installed pg13 from the postgres repos but am not really using it
in that form; i'm using docker images instead. i now find i need
to uninstall it to facilitate upgrading my desktop to ubuntu 24

is apt remove an effective way to uninstall or is there a better method?


If  you used "apt install" to install it in the first place, then yes, "apt remove" is the only way to remove it cleanly.

Note that this won't delete the data directory - you'll need to use the Debian-specific script pg_dropcluster to do this. Also, I don't think it removes the config files in /etc/postgresql, though "apt purge" should do for those.

Ray.


-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie

pgsql-general by date:

Previous
From: Richard Welty
Date:
Subject: uninstalling postgresql 13 on ubuntu 22.04?
Next
From: Adrian Klaver
Date:
Subject: Re: uninstalling postgresql 13 on ubuntu 22.04?