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

From: tech-lists <tech-lists_at_zyxst.net>
Date: Wed, 06 Apr 2022 23:31:04 UTC
On Tue, Apr 05, 2022 at 09:17:16AM +0200, Baptiste Daroussin wrote:
>
>pkg shell "delete from packages where name='youpackagename'"
>
>This will do the trick

Unfortunately that didn't work. I tried the following:

pkg shell "delete from packages where name='nextcloud-php80-23.0.3'"

pkg shell "delete from packages where name='www/nextcloud'"

No errors, but pkg info -xo still showed:

# pkg info -xo nextc
nextcloud-php80-23.0.3         www/nextcloud

next, tried the pkg sqlite shell:

sqlite> delete from packages where name="nextcloud-php80-23.0.3";
sqlite> delete from packages where name="www/nextcloud";
sqlite> .quit

same result.
-- 
J.