Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tGQFL-002qvW-TC for pgsql-general@arkaria.postgresql.org; Wed, 27 Nov 2024 22:10:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tGQFK-001CcJ-22 for pgsql-general@arkaria.postgresql.org; Wed, 27 Nov 2024 22:10:54 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from <010201936fad4025-074cf372-e97c-4be4-af00-d2e7e340e89b-000000@mail.rodonnell.ie>) id 1tGQFJ-001Cbx-HD for pgsql-general@lists.postgresql.org; Wed, 27 Nov 2024 22:10:53 +0000 Received: from a7-34.smtp-out.eu-west-1.amazonses.com ([54.240.7.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from <010201936fad4025-074cf372-e97c-4be4-af00-d2e7e340e89b-000000@mail.rodonnell.ie>) id 1tGQFC-004OaI-M7 for pgsql-general@lists.postgresql.org; Wed, 27 Nov 2024 22:10:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=dv7fx26oobputowqxkzhnujragfvk7eg; d=rodonnell.ie; t=1732745445; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To; bh=bBwhdIjOJ6z/U/36tM4R043WwZrc/52mK2ANec9Sx8o=; b=eSF9zalSvqa6fEHQ8ycL2Jjd3bVMFI7z7czg8dV0OEPh8/t4yUQkZ0TI7IpjH5Q6 4K0wFUEe4rqFLLlqdiGlFz6ERRIcS46ntfZzu9xrwffDa6WMiB+mt7NAyjV10BGBMvg WeHZMsj3vUwcWdt1xSXHbt9TWjenqR7b3+rOx4wO1kM3KUMw/fykYTr3f9b595halsg PLV1xT7F4aGXaCGKj1tIemWglvryOVPtxG5urSTJdol9Tz/sObH9hSCleiwLai3xUVv lD5S0K++94oPL6BKzRuvtJL+0h9JSvolLrUuX1SfiW72xMfc4oyHj6V2nxTl2Ch1FWB PuB1Cmp8YQ== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1732745445; h=Content-Type:Message-ID:Date:MIME-Version:Subject:To:References:From:In-Reply-To:Feedback-ID; bh=bBwhdIjOJ6z/U/36tM4R043WwZrc/52mK2ANec9Sx8o=; b=JHNAx6uve8nppgb07PVU1xTUcBiPqdq+sipXqp+D7MyEz2SH9KHoJPEY27XoAqPO KYF56J++KdTTQ1XQAtKG4tU+Hb7EH6Csgd/UETp4LCwZUVGBy5MF9tTqBx4Bhl4iAfe NEvgJ1wdDsnoWDdjyl1zXZdd035dnlp6hmMisEZo= Content-Type: multipart/alternative; boundary="------------jm3VXrKAQ5eWIYCM2B1rzOk2" Message-ID: <010201936fad4025-074cf372-e97c-4be4-af00-d2e7e340e89b-000000@eu-west-1.amazonses.com> Date: Wed, 27 Nov 2024 22:10:45 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: uninstalling postgresql 13 on ubuntu 22.04? To: Richard Welty , pgsql-general References: <1936f9df899.e9ecfd641162658.1483046987505738437@salesium.com> Content-Language: en-GB From: Ray O'Donnell In-Reply-To: <1936f9df899.e9ecfd641162658.1483046987505738437@salesium.com> X-Spam-Bar: / Feedback-ID: ::1.eu-west-1.Bw1eu/7Uepg3xcsiFBL71JJRCh2A2yTFrgBhhiulXmU=:AmazonSES X-SES-Outgoing: 2024.11.27-54.240.7.34 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------jm3VXrKAQ5eWIYCM2B1rzOk2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 --------------jm3VXrKAQ5eWIYCM2B1rzOk2 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
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
--------------jm3VXrKAQ5eWIYCM2B1rzOk2--