uninstalling postgresql 13 on ubuntu 22.04?

Started by Richard Weltyover 1 year ago4 messagesgeneral
Jump to latest
#1Richard Welty
rwelty@salesium.com

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?

thanks,

   richard

#2Ray O'Donnell
ray@rodonnell.ie
In reply to: Richard Welty (#1)
Re: uninstalling postgresql 13 on ubuntu 22.04?

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

#3Adrian Klaver
adrian.klaver@aklaver.com
In reply to: Richard Welty (#1)
Re: uninstalling postgresql 13 on ubuntu 22.04?

On 11/27/24 13: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

Not really. Per here:

https://www.postgresql.org/download/linux/ubuntu/

Ubuntu 24 is supported, You would just have to change the repo to:

... noble-pgdg ...

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

Otherwise follow Raymond O'Donnell's suggestions to uninstall/purge.

thanks,
   richard

--
Adrian Klaver
adrian.klaver@aklaver.com

#4Rob Sargent
robjsargent@gmail.com
In reply to: Adrian Klaver (#3)
Re: uninstalling postgresql 13 on ubuntu 22.04?

On Nov 27, 2024, at 3:51 PM, Adrian Klaver <adrian.klaver@aklaver.com> wrote:

On 11/27/24 13: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

Not really. Per here:

https://www.postgresql.org/download/linux/ubuntu/

Ubuntu 24 is supported, You would just have to change the repo to:

... noble-pgdg ...

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

Otherwise follow Raymond O'Donnell's suggestions to uninstall/purge.

thanks,
richard

--
Adrian Klaver
adrian.klaver@aklaver.com

Or rethink that docker choice...

Show quoted text