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 1qQT10-0000Zd-2K for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 13:32:50 +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 1qQT0y-000Ize-3g for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 13:32:49 +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 ) id 1qQT0x-000IzW-NS for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 13:32:49 +0000 Received: from mail-yw1-x1134.google.com ([2607:f8b0:4864:20::1134]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qQT0w-0000Xx-8p for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 13:32:48 +0000 Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-58439daf39fso47559877b3.1 for ; Mon, 31 Jul 2023 06:32:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690810364; x=1691415164; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=waKUKNP9lgZIg24OY/JiItQQLZy6mG5ABNkt+CObV34=; b=kz0IObvsynYzbal+eoglj2Orr0M5aM6vRsWYqD8zH9YS7FLRt49vrE2nYoyhYcCBee ooLmuUo7IvFa1M7i2lafOC23Q12lNvRQNNizk5G4X8yo6Yi3aQkoMJZBXlT+gGQ7bEWS EN6Aumwn3U0pkjGcoXMuRk4GtWmN9M8/uJPYIn9v8F8adEizQ1Vjlo5csM/Nk2V4PAcm emUKR4wxcGYNbadnDZQePlQRuearxn94LCXPJCbgVt3ovIFESzsXvkNBt4UjI6xzo1wJ ED8MqdZwvC9NGYQjllImTXCiebs+0cH+IUp9df+SYPOmyyiKFSGL9Dtluw53OfTvpW0G RQAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690810364; x=1691415164; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=waKUKNP9lgZIg24OY/JiItQQLZy6mG5ABNkt+CObV34=; b=WMdryIdEzj8oxgzZ/nGjDwhoL7LRVZDpLEpOBYqAZgQtKbwsCv3BEXboK111DlvTCF wZ7u88sTk7pIJYY0YmWLBHVuhhE1Uj10kc3ljFGhHfo8GdIsngzZSGxYC6kXlR9YPL73 B43PBOdJpN2t84irNeDD5hjbrLbRvPgVpVZBgWyZqed5vgIsN74YTJBPlBXejxg2WRLx gVu+eoExvcIez6a5LnGOtYUgmshEhyuhgwuyK4y8rQVfe4bBdpVznfRTSBXzADwlqKta 2w+dAgfWO/PspZXo6dg4UwvIP8kREJkiyWxeSKQAiNB7Z89nCPvJqxuJIu8FIXrklrvy fwRA== X-Gm-Message-State: ABy/qLZxmoWJEHgFvvmdSAHbEPU/E/VyFjV73TLztV8ZD5KTuXzWSUUI 3iu4KcmvI9GHGqTnrcfqFhX5+OFgM8Q= X-Google-Smtp-Source: APBJJlGH/m1udF2s+bxK6Zns0wxOpF2Fy+wWb9cP9RLAzoyViex2eIyOBwliMogK6pha5S7BbjfWHA== X-Received: by 2002:a0d:dbd3:0:b0:56c:f090:36eb with SMTP id d202-20020a0ddbd3000000b0056cf09036ebmr10328971ywe.36.1690810364357; Mon, 31 Jul 2023 06:32:44 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:7012:be9:eaa3:7e13? ([2600:1700:bd2c:b810:7012:be9:eaa3:7e13]) by smtp.googlemail.com with ESMTPSA id w204-20020a0dd4d5000000b00583d67839fasm2994888ywd.121.2023.07.31.06.32.43 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Jul 2023 06:32:43 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------oeRJTicZj2LO90OSqzqW62Rx" Message-ID: Date: Mon, 31 Jul 2023 08:32:43 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: Completely Removing PostgreSQL Content-Language: en-US To: pgsql-general@lists.postgresql.org References: From: Ron In-Reply-To: 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. --------------oeRJTicZj2LO90OSqzqW62Rx Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 7/31/23 07: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*/ > > 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? > > https://askubuntu.com/a/18807/69438 Only the config files are left. -- Born in Arizona, moved to Babylonia. --------------oeRJTicZj2LO90OSqzqW62Rx Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 7/31/23 07: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

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?



https://askubuntu.com/a/18807/69438

Only the config files are left.

--
Born in Arizona, moved to Babylonia.
--------------oeRJTicZj2LO90OSqzqW62Rx--