Re: pkg_delete failed
On Mon, Aug 17, 2009 at 7:02 PM, Justin C. Sherrill > > The best thing may be to ask on the pkgsrc-us...@netbsd.org mailing list. > I'd like to know the best answer too. > > This is what they say :-) Run make update directly in pkgtools/pkg_install. thanks --Siju
Re: pkg_delete failed
Siju George wrote: > What should I do to update pkg_install? Starting from 2009Q1 (AFAIR) pkg_add updates packages inplace. This with combination of DESTDIR support makes this procedure possible: cd /usr/src/pkgtools/pkg_install/ bmake USE_DESTDIR=yes package pkg_add -u /usr/src/packages/pkg_install-[DATE].tgz The same procedure works with bootstrap-mk-files and bmake packages. And one more small related hint ... Note, that pkg_add rejects update attempt to the same version already installed. I often screw up some of my packages during development and would like to reinstall it from known good package. Then this procedure works: pkg_delete -f pkg_add package.tgz pkg_admin rebuild-tree -- Hasso Tepper
Re: pkg_delete failed
On Mon, August 17, 2009 4:15 am, Siju George wrote: > What should I do to update pkg_install? I've wondered about this too; the last time this bit me when updating a bulk build, I ended up using pkg_delete -ff to get rid of _everything_ and rebuilding from pkgsrc/pkgtools/bootstrap. This may be more catastrophic than you want. The best thing may be to ask on the pkgsrc-us...@netbsd.org mailing list. I'd like to know the best answer too.
pkg_delete failed
Hi Trying to update packages I got the following output dfly-bkpsrv# pkg_chk -g dfly-bkpsrv# pkg_chk -r pkgtools/pkg_install - pkg_install-20090610 < pkg_install-20090724 13:42 /usr/pkg/sbin/pkg_delete -K /var/db/pkg -r pkg_install-20090610 pkg_delete: The following packages are marked as not for deletion: pkg_install-20090610 ** '/usr/pkg/sbin/pkg_delete -K /var/db/pkg -r pkg_install-20090610' failed [ Rechecking packages after deletions ] dfly-bkpsrv# pkg_chk -a pkgtools/pkg_install - pkg_install-20090610 < pkg_install-20090724 dfly-bkpsrv# pkg_chk -as pkgtools/pkg_install - pkg_install-20090610 < pkg_install-20090724 dfly-bkpsrv# pkg_chk -as pkgtools/pkg_install - pkg_install-20090610 < pkg_install-20090724 What should I do to update pkg_install? Thanks --Siju