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 1qQTtF-0002s5-DF for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 14:28:54 +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 1qQTsE-000THo-Ba for pgsql-general@arkaria.postgresql.org; Mon, 31 Jul 2023 14:27:51 +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 1qQTsC-000THg-VY for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 14:27:51 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qQTs5-0000tV-Qv for pgsql-general@lists.postgresql.org; Mon, 31 Jul 2023 14:27:49 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4E3C4320095F; Mon, 31 Jul 2023 10:27:35 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Mon, 31 Jul 2023 10:27:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= cc:content-transfer-encoding:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:sender:subject:subject:to:to; s=fm2; t= 1690813654; x=1690900054; bh=4+4DJgen2yMnIEwYnp1qYJk51ShAGAVDutb 5uqGoYZ8=; b=LWgii6WeahVDefaz85u8tlYvT8/yGsuI+cSXBY73DGZ25G79Btq f/cNgOCcdU65Y/Jz9vgR/XJ72yclEcDyPfvFfi//FDWc3V76J0/fpNZ14q73VJxR HNsTX/MwN3JJCL2JMtHa/ImZQe9k8F/6wLaZTWhYvw0RPkUxKQknQwCWRVtmiIVG xf5gihspXl0wckRuIJK1D6SW9H2vEIbg4ke2v2VRW21H7NfCa4/W0rKsFN/cRFLx HUdeg89uU+STPK+Oj8VOVjvmV6W/EKL8stGS28/DFfbQHXaAOH8FEmbIlQ2f4AAZ ubR0gcxSTQ4vPjKgh00yOJnBN3HluTyPcfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1690813654; x= 1690900054; bh=4+4DJgen2yMnIEwYnp1qYJk51ShAGAVDutb5uqGoYZ8=; b=N pQ/gTMVbwAUnW2BH1gEDuoo5VspDtsnCJqcZLbAmmv/wHPKe6KetQZ+UH+pHXhtB vjyR5iGXLBmB+gIX41BVBOnsvyvKC9PJrGqKpoqJZebggUDNfCT3zjh8PCz0+D3q CWhR/sEu1pGXbprCD65RS2I+WzwpJZK8518BfuXECvlkWdo+CCxqGYY9K/Xyed34 3wbIchB9fdznDKY0IR+2wfG5Bj59IsDBCO4rjfa21c+U5OxYRXyO2LxhYzkXnG31 Vc2Fflp2eOe6AGqlschGCud/NlkNXB8dNQYzSkYEQR4lLKo3886mrNZKUW2OX+xc IP9BVsZC0u+ecbiaT7qZA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedviedrjeeggdehvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepkfffgggfuffvfhfhjggtgfesthekre dttdefjeenucfhrhhomheptegurhhirghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhl rghvvghrsegrkhhlrghvvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedugfeuleegve ffhfegleejhefhtedtgeeileeggfehfefffeevgeejtdeutefftdenucevlhhushhtvghr ufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvg hrsegrkhhlrghvvghrrdgtohhm X-ME-Proxy: Feedback-ID: i76984098:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 31 Jul 2023 10:27:34 -0400 (EDT) Message-ID: <33f0fc61-2d0f-60bd-e0ed-4cada3c30301@aklaver.com> Date: Mon, 31 Jul 2023 07:27:32 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: Completely Removing PostgreSQL To: Amn Ojee Uw , pgsql-general@lists.postgresql.org References: Content-Language: en-US From: Adrian Klaver In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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