From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Amn Ojee Uw <amnojeeuw@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Completely Removing PostgreSQL
Date: Mon, 31 Jul 2023 07:27:32 -0700
Message-ID: <33f0fc61-2d0f-60bd-e0ed-4cada3c30301@aklaver.com> (raw)
In-Reply-To: <f7c53038-7713-94bd-4007-f66a7d97a8ae@gmail.com>
References: <f7c53038-7713-94bd-4007-f66a7d97a8ae@gmail.com>
On 7/31/23 05:47, Amn Ojee Uw wrote:
> In my Debian 12, I have removed the following apps from my system by
> using the following commands:
>
> /*sudo apt-*//*get*//*–purge *//*remove*//*postgresql postgresql*//*-15*//*postgresql-client-common postgresql-common postgresql-contrib*//**//*sudo apt-*//*get*//*–purge *//*remove*//*postgresql postgresql*//*-12*//*postgresql-client-common postgresql-common postgresql-contrib*/
I believe this
sudo apt-get –purge remove ...
should be:
sudo apt-get remove –purge ...
or simpler
sudo apt-get purge ...
As it is you just remove(ed) the files except for the configuration files.
>
> and then used*sudo**apt autoremove* to remove whatever was left dangling
> there. However, after using *dpkg -l | grep postgres* command, I get this?
>
> **
>
> *dpkg -l | grep postgres*
> rc postgresql-12 12.15-1.pgdg120+1 amd64 The
> World's Most Advanced Open Source Relational Database
> rc postgresql-15 15.3-1.pgdg120+1 amd64 The
> World's Most Advanced Open Source Relational Database
> rc postgresql-client-common 250.pgdg120+1
> all manager for multiple PostgreSQL client versions
> rc postgresql-common 250.pgdg120+1 all
> PostgreSQL database-cluster manager
> rc postgresql-pljava-common 1.6.4-2.pgdg120+1
> all Java procedural language for PostgreSQL, config files
>
> -----------------------------
>
> The above clearly shows that *dpkg*, and therefore my Debian 12, still
> recognize the existence of these packages. When trying to remove them
> *apt remove,* it fails to find them.
>
> How can I completely remove PostgreSQL-xx.xx from my system?
>
>
> Thanks!
>
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, amnojeeuw@gmail.com
Subject: Re: Completely Removing PostgreSQL
In-Reply-To: <33f0fc61-2d0f-60bd-e0ed-4cada3c30301@aklaver.com>
References: <f7c53038-7713-94bd-4007-f66a7d97a8ae@gmail.com> <33f0fc61-2d0f-60bd-e0ed-4cada3c30301@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox