Subject: Re: efficient updating with binary packages?
To: Thomas Klausner <>
From: David Brownlee <>
List: tech-pkg
Date: 11/04/2004 16:29:00
 	Assuming you have a pkg_chk.conf setup

 	pkg_chk -r	 (or -Br if you really want any changes)
 	pkg_add -ab

 	should work

On Thu, 4 Nov 2004, Thomas Klausner wrote:

> Hi!
> Someone must have had this problem before...
> so I've made a bulk build of a lot of packages, and
> now I'd like to update my installed packages from the
> generated binary packages.
> One way would be:
> 	pkg_delete '*'
> 	pkg_add /usr/pkgsrc/packages/All/*
> assuming that I only have the packages I want there.
> However, this probably re-installs quite a lot
> of packages unnecessarily.
> Perhaps I could also set UPDATE_TARGET to bin-install in /etc/mk.conf
> and do a 'make update' in all the outdated packages' directories.
> That's better, because it causes less unnecessary churn, but it
> is more work for me.
> Did someone already write a more automatic way to do the second?
> Thomas

 		David/absolute       -- No hype required --