Subject: Re: Global pkgsrc update
To: NetBSD Users <>
From: Milos Negovanovic <>
List: netbsd-users
Date: 07/23/2004 17:20:12
On Thu, Jul 22, 2004 at 11:15:21PM -0400, Brian Rose wrote:
> I have decided to add some software to a netbsd machine that has been up 
> and running for several months, maybe a year with no updates. Upon running 
> 'lintpkgsrc -i' I have found that many (about 15) of my packages are out of 
> date. Is there a global update that will update all my old packages, or do 
> I need to write them all down and update them one at a time?
> --
> Brian

And here is a 3rd way of doing it with pkg_chk (pkgtools/pkg_chk)!

1) First make list of installed packages:
	pkg_chk -g -C /etc/pkges.conf
	vim /etc/pkges.conf <optional>

2) Then delete them all:

	pkg_delete -f \*
	rm -rf /usr/pkg <optional>

3) Reinstall pkg_chk (it was deleted in previous step):

	cd /usr/pkgsrc/pkgtools/pkg_chk && make install

4) Rebuild all:
	pkg_chk -as -C /etc/pkges.conf

Works for me :)!