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 Sun, 15 Jul 2007 15:13:34 -0400
"Mark E. Perkins" <perkinsm%bway.net@localhost> wrote:
> Having updated pkg_install, I thought I might as well update the other
pkgtools that changed recently (pax, tnftp). But they're marked as not
for
> deletion, so they cannot be deleted. :-) None of the suggestions in the
error
> messages (pkg_delete, make {update,replace}) works. So how *does* one
go
> about updating them?
>
> Thanks,
> Mark
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
# restore "not for deletion" state
cd /var/db/pkg/bmake*
date > +PRESERVE
It should work in most cases, I think.
-Tobias
Home |
Main Index |
Thread Index |
Old Index