Re: removing a pkg from pkg database without deleting the pkg itself

From: Baptiste Daroussin <bapt_at_FreeBSD.org>
Date: Tue, 05 Apr 2022 07:17:16 UTC
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