Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Apr 2022 09:17:16 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        tech-lists <tech-lists@zyxst.net>
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>
In-Reply-To: <Ykrx7YW9rmCez2LC@cloud9.zyxst.net>
References:  <Ykrx7YW9rmCez2LC@cloud9.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220405071716.vdvxrwyqdjltvjtm>