From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 14 23:19:18 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7AB9216A417 for ; Sun, 14 Oct 2007 23:19:18 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by mx1.freebsd.org (Postfix) with ESMTP id 538A413C44B for ; Sun, 14 Oct 2007 23:19:18 +0000 (UTC) (envelope-from cliftonr@lava.net) Received: by malasada.lava.net (Postfix, from userid 102) id B05F0153882; Sun, 14 Oct 2007 13:19:17 -1000 (HST) Date: Sun, 14 Oct 2007 13:19:17 -1000 From: Clifton Royston To: soralx@cydem.org Message-ID: <20071014231917.GB29405@lava.net> Mail-Followup-To: soralx@cydem.org, freebsd-hackers@freebsd.org References: <20071014203736.GB2677@lava.net> <20071014160520.07ad521d@soralx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20071014160520.07ad521d@soralx> User-Agent: Mutt/1.4.2.2i Cc: freebsd-hackers@freebsd.org Subject: Re: A more tenuously package-related question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 23:19:18 -0000 On Sun, Oct 14, 2007 at 04:05:20PM -0700, soralx@cydem.org wrote: > > > I used to use pkg_update from the 'pkg_install-devel' toolset to > > upgrade systems via replacement of binary packages. Its > > implementation had some minor flaws - it was essentially a perl > > wrapper for an iterative "pkg_delete -f" followed by "pkg_add -f", > > which made it problematic to upgrade either the perl or pkg_install > > packages, for instance - but the core idea was excellent. Despite > > those flaws it was very useful in maintaining servers via binary > > packages, because it would reconnect the pkgdb dependencies on the > > old package version to the new package version. However, it's not > > part of the current base package tools. > > > > Is there any better equivalent tool at the moment, or should I just > > resuscitate the old "pkg_update"? > > Did you try ports-mgmt/portupgrade? You can run it as `portupgrade -P` > for binary updates. Besides actual 'portupgrade', it has a set of > useful tools, too. But be warned -- the utility is snail-slow. I did look at it, but it appeared that it needed to run off the FreeBSD ports tree, whereas I'm building packages from a separate instance of the ports tree in our own CVS, with local modifications, and then deploying these packages on multiple servers. (This time around, I'm planning to not even install the ports tree on servers other than the build server.) I therefore need to use a utility which can operate using only the dependency information in the pkgdb and embedded in the package files themselves. After posting before, I decided to explore pkg_replace, and it appears that it might be able to do what I want with the right options. -- Clifton -- Clifton Royston -- cliftonr@iandicomputing.com / cliftonr@lava.net President - I and I Computing * http://www.iandicomputing.com/ Custom programming, network design, systems and network consulting services