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 1qQSIx-00DxrF-2q for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 12:47:19 +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 1qQSIt-000308-R7 for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 12:47:17 +0000 Received: from magus.postgresql.org ([87.238.57.229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQSIt-000300-GC for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 12:47:16 +0000 Received: from mail-qt1-x835.google.com ([2607:f8b0:4864:20::835]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qQSIs-001TdZ-Kw for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 12:47:16 +0000 Received: by mail-qt1-x835.google.com with SMTP id d75a77b69052e-40694b191cfso35322681cf.3 for ; Mon, 31 Jul 2023 05:47:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690807632; x=1691412432; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=RMBuZppnlaMl0TM+BKWZi1gxVcEPTi58/Gexm8MacjI=; b=Gv0wYvZrLth+1JHplo2NqG9BB5SO0NSg8o4rpbbso63Rf5LBlVFDrOxRpAGtUYQo3d 2xuoYH7FiwwGLhLfjadHE+sciAqykHaanluMxid70uqIVglpaEKxvsO/UC4ch+p79dwd 8+1xz1xaAOB6G6/iIff8zq5UKGWUxSTUrnDYGhpFw1KL4nDKOQQfUVaOhnK44MvcbdrI bbfUA0KfM85XBGA29lMYOWH9dDcp9Ptx2tayZ5vDsTRwhzIjjo/MjSYwJ6ZYW51oR//V ithLxE3ipRbl6OAAqUDWqbMet72tOyeLZblUC38GBql8WHMA+k9VA1rNyi0bZ/XzUxFZ qeug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690807632; x=1691412432; h=subject:to:content-language:user-agent:mime-version:date:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RMBuZppnlaMl0TM+BKWZi1gxVcEPTi58/Gexm8MacjI=; b=hoCbw9mFzO+BcZw6W9IQMAY7fHy/+Am6OEf0oAWaroNjTqOjym9fkedw1FoJMJ62ow x9nQAYs1DhQscHHznfc5twn2/qU+HcidbEaQNRlXGXtP+Gt61QYtikXRQbwA5jojdl5N 7fMyvh4YJqKXhfPGiXzN/OFaN49SLHDbnK2rKircicm16HPVnT1Imn3TfRWJu5O/mBB4 7jQ2E7uRzWsp30DviQFpPNHXL66t+hVRP19VnyzkRj0WQhZqUA2ZX1EKtULQ4P2nAV6A aggWQBbDnOwblnwSBjNqlgJv97oFmEKkF8QivmyZ1t2y+vPUUJ5Ujk5sVPS27UjmcGdD F/Vw== X-Gm-Message-State: ABy/qLYte+hZIGdxtkp3O+9ExLcsnyuuxrXmWNPf88B5XW3dUpU2jtKj UHS5bD+jA/hSK4B8PuFo5dQrcQ86KjWdiw== X-Google-Smtp-Source: APBJJlH+VworlyGgS/zw21fqDbmVBMLVEIgX1xxPRoWw849SlyXmSSfcRA5et2LH6XRpQ6BqJ6cJiA== X-Received: by 2002:a05:622a:588:b0:40f:c665:a617 with SMTP id c8-20020a05622a058800b0040fc665a617mr979880qtb.10.1690807632314; Mon, 31 Jul 2023 05:47:12 -0700 (PDT) Received: from [192.168.2.170] ([67.70.150.114]) by smtp.gmail.com with ESMTPSA id eo7-20020a05622a544700b0040c57ea0fb8sm1768473qtb.49.2023.07.31.05.47.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Jul 2023 05:47:11 -0700 (PDT) From: Amn Ojee Uw X-Google-Original-From: Amn Ojee Uw Content-Type: multipart/alternative; boundary="------------2sgrLn7d8ozjEx1T6qz4IUaS" Message-ID: Date: Mon, 31 Jul 2023 08:47:02 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.1 Content-Language: en-US To: pgsql-general@lists.postgresql.org Subject: Completely Removing PostgreSQL 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. --------------2sgrLn7d8ozjEx1T6qz4IUaS Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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? Thanks! --------------2sgrLn7d8ozjEx1T6qz4IUaS Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

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?


Thanks!



--------------2sgrLn7d8ozjEx1T6qz4IUaS--