Subject: Re: how to update a pkg marked not for deletion?
To: Tobias Nygren <tnn@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 07/18/2007 08:59:30
On Tue, 17 Jul 2007, Tobias Nygren wrote:

> As said before in the thread, re-bootstrapping is probably the safest way.
> But I usually do something like this (bmake used as an example):
> 
> # build new version
> cd /usr/pkgsrc/devel/bmake
> /usr/pkg/bin/bmake
> # make pkgsrc forget about the bmake pkg
> rm -r /var/db/pkg/bmake*
> # install new version
> /usr/pkg/bin/bmake install


We used to have FORCE_PKG_REGISTER but that also meant that multiple 
versions of same package would be installed.


> # restore "not for deletion" state
> cd /var/db/pkg/bmake*
> date > +PRESERVE
> 
> It should work in most cases, I think.


  Jeremy C. Reed