Subject: Re: how to update a pkg marked not for deletion?
To: Tobias Nygren <tnn@NetBSD.org>
From: Jeremy C. Reed <email@example.com>
Date: 07/18/2007 10:23:40
On Wed, 18 Jul 2007, Jeremy C. Reed wrote:
> 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.
I mean registered (not multiple installed) -- they would share same files
so was confusing.
> > # restore "not for deletion" state
> > cd /var/db/pkg/bmake*
> > date > +PRESERVE
> > It should work in most cases, I think.
> Jeremy C. Reed
Jeremy C. Reed