pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: how to update a pkg marked not for deletion?



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



Home | Main Index | Thread Index | Old Index