Subject: RE: pkgsrc and update
To: None <ghen@telenet.be>
From: Robert Cates <robert@kormar.net>
List: netbsd-users
Date: 07/26/2005 15:41:49
Actually I ended up with this (at the end of pkg_chk -r):

pkg_install-20050718: version mismatch - pkg_install-20050318
/usr/sbin/pkg_delete -K /var/db/pkg -r pkg_install-20050318
Package `pkg_install-20050318' is marked as not for deletion
** ' /usr/sbin/pkg_delete -K /var/db/pkg -r pkg_install-20050318' failed
[ Rechecking packages after deletions ]
Missing: devel/pkgconfig lang/perl58 mail/courier-auth

What now?

Thanks,
Robert

-----Original Message-----
From: netbsd-users-owner@NetBSD.org
[mailto:netbsd-users-owner@NetBSD.org]On Behalf Of Geert Hendrickx
Sent: Dienstag, 26. Juli 2005 15:12
To: Robert Cates
Cc: lama; netbsd-users@netbsd.org
Subject: Re: pkgsrc and update


On Tue, Jul 26, 2005 at 03:05:45PM +0200, Robert Cates wrote:
> and now I do not know what all packages have been updated or deleted!!
> Funny thing is, I had just installed all of xorg yesterday!  I'm getting
> pretty angry at NetBSD and this pkgsrc problem!!

Start with "pkg_chk -g" to generate a list of the packages you had before.
Then remove the outdated ones with "pkg_ckh -r" and add them again with
"pkg_chk -ask" (or -abk if you want to use binary packages).  This way
packages are build only once, and you know what you're missing if something
fails.  

GH