Thread: uninstalling postgresql 13 on ubuntu 22.04?

uninstalling postgresql 13 on ubuntu 22.04?

From
Richard Welty
Date:
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

Re: uninstalling postgresql 13 on ubuntu 22.04?

From
Ray O'Donnell
Date:
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

Re: uninstalling postgresql 13 on ubuntu 22.04?

From
Adrian Klaver
Date:
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




Re: uninstalling postgresql 13 on ubuntu 22.04?

From
Rob Sargent
Date:

> 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...

>