From nobody Tue Apr 05 07:17:16 2022 X-Original-To: freebsd-pkg@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 1CC801A92F61 for ; Tue, 5 Apr 2022 07:17:19 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KXf9B708vz4SQ1; Tue, 5 Apr 2022 07:17:18 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649143039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5kgEYUSfZ70viMkHOOWXaLGBlKx8AOP9quLmPGZxVs0=; b=BmWSweMC1Ljkg6NVzbLrCm4tFlVjLyBYFjX41uO7DWZf45bu46iiFK/eIf0Chx8DxHIErP 3ghYpWvZ+z2uqrsXXyssjpAXk8Mqw4NHvt6rriBQEFA6b5Ntc7QFes0FwCNfg8Ngq+0wQy 9bRF4COZHyr5cFlKeEPijXbPhlOlHXGs9qP8Mu0m/295VPDx3D3SiriHvBTCWVoB7qZpPA la+b934GlU9g3PRh0X6FbDcQanhz1gNVhPRhHs+w0uqZu/64xMUevNvVb5UB+6k1ehCfy9 1cJ8j4aJn0i2Ii09zLJE6D1NE2zKfMpGT3iOV3h7TQ3E4ecQS4VcX2WQKJYv5g== Received: from aniel.nours.eu (nours.eu [IPv6:2001:41d0:8:3a4d::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 9250820ECF; Tue, 5 Apr 2022 07:17:18 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id 4D887734DE; Tue, 5 Apr 2022 09:17:16 +0200 (CEST) Date: Tue, 5 Apr 2022 09:17:16 +0200 From: Baptiste Daroussin To: tech-lists Cc: freebsd-pkg@freebsd.org Subject: Re: removing a pkg from pkg database without deleting the pkg itself Message-ID: <20220405071716.vdvxrwyqdjltvjtm@aniel.nours.eu> References: List-Id: Binary package management and package tools discussion List-Archive: https://lists.freebsd.org/archives/freebsd-pkg List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-pkg@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649143039; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5kgEYUSfZ70viMkHOOWXaLGBlKx8AOP9quLmPGZxVs0=; b=VPHdyxx5vXM5CvaIoz9Lh3O2oOOCau4Ml4qNHy911PmbpFy0/vLt/CsOqr6vuXAjNS5iMT lhfEQGuVWRNxRoVIA+/97ZGZ3OclTaM9TOdVlj4nPCDo5ZDHtFQknALsYoWMYSjO/NIJne 0jpCKcg9Jo0Ej8jwH3ChRxlQzeOHsk6rvqke9cM4pSczohdmjqCtKHCZ7Z+nywvgn+uOge JbZtDfucn81K14HpwONj/yO1T5KMW0ywGM4XCC+/0sR//S7KRJ2RhOZJSCHgrCvMYOx3xP u80I7RDkC+FJuQr8EkD8lb65zALuNhPWEcUrTzvh6ElFK8ZyIJYcIqRGJyaqqQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649143039; a=rsa-sha256; cv=none; b=uAbHGk2Q9sjFw7oOOz4z7/GsQBgB6BcBYh7qYeG1kUd2b9NPSqGZd9xDTGEPWtYXML18IG vBmfHouavOGMoKYxBgAQK/Oqsf+Ks8smW5oFz5Mhk/CS3T2IRpcOThpBkVKVVk6AqylkLV g0hDG4ogg8tKyffF1DKiP3p0NRwR1KygYR37ImwwpNtIXAVw4ENkaBykRowztQNnRbXqEQ KtHnGLRZsKeYfts0AiVrbt/V3bwaE3KzPrunsRNuYkcUIchJoTrYpYg7gmSVjDsAw3i4Bd tRV3YeJIVtKN/uvjJl7e/r5y441w9f1CNMiX9eEuscqJpIcY+OY1HEzeDD46dg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N On Mon, Apr 04, 2022 at 02:26:05PM +0100, tech-lists wrote: > Hi, > > I'd like to remove a pkg entry from the database so it's not managed by pkg. > Can't see a way to do this via pkg-delete(8) > > The reason for doing this is because this pkg has its own ecosystem and i'd like it > to manage the pkg, get updates and so on. > > One way around it would be to move the installation to a temp dir then > deleting the pkg then moving it back. I just wondered if there's a better > way? > > context: % pkg -v > 1.17.5 > > FreeBSD 14.0-CURRENT #0 main-n254097-388c12e3f4a arm64.aarch64 > > thanks > -- > J. pkg shell "delete from packages where name='youpackagename'" This will do the trick Best regards, Bapt