From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 21:16:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3301216A400 for ; Sun, 25 Mar 2007 21:16:02 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (dsl231-043-140.sea1.dsl.speakeasy.net [216.231.43.140]) by mx1.freebsd.org (Postfix) with ESMTP id C0A3413C45E for ; Sun, 25 Mar 2007 21:16:01 +0000 (UTC) (envelope-from kline@tao.thought.org) Received: from tao.thought.org (localhost [127.0.0.1]) by tao.thought.org (8.13.8/8.13.1) with ESMTP id l2PLGVMo078035; Sun, 25 Mar 2007 13:16:31 -0800 (PST) (envelope-from kline@tao.thought.org) Received: (from kline@localhost) by tao.thought.org (8.13.8/8.13.1/Submit) id l2PLGVpv078034; Sun, 25 Mar 2007 13:16:31 -0800 (PST) (envelope-from kline) Date: Sun, 25 Mar 2007 13:16:30 -0800 From: Gary Kline To: Lowell Gilbert Message-ID: <20070325211630.GC67757@thought.org> References: <20070323181909.GA38716@thought.org> <44r6rde9uo.fsf@Lowell-Desk.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44r6rde9uo.fsf@Lowell-Desk.lan> User-Agent: Mutt/1.4.2.2i X-Organization: Thought Unlimited. Public service Unix since 1986. X-Of_Interest: Observing twenty years of service to the Unix community Cc: Gary Kline , FreeBSD Mailing List Subject: Re: Oops... {upgrading, using a script and pkg_version} X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Mar 2007 21:16:03 -0000 On Sun, Mar 25, 2007 at 09:22:39AM -0400, Lowell Gilbert wrote: > Gary Kline writes: > > > Hi people, > > > > A day or three ago somebody posted a neat upgrade script > > (or snippet of) using a shell for loop and pkg_version. > > I was going to save, thought I saved it to ~/Mail/freebsd. > > Can't find it. Anybody knw which post I'm thinking of? > > > > It was something like: > > > > for `pkgversion -xyz {foo}`; whatever; > > do > > portupgrade -abc; > > done > > > > but something that was much more sharp. Several days ago I > > saved the output of pkg_version -IL'<=' to /tmp/Up.sh, then > > edited in portupgrade to each of the 20+ ports. As a result, > > I'm almost entirely upgraded here. What I saw looked much more > > efficient. > > I'm not really following what you're looking for; if you're trying to > upgrade everything, doesn't "-a" get it? I've got ~770 ports install--many|most depencencies. Doesn't "-a" rebuilt *everything*? If not, I've been sadly mis-understanding the man page. On my fastest FBSD box I'd like to custom build all the ports that need upgrading. Turn them into pakages for use on all my other i686 servers. > > To avoid repackaging all the dependencies, I sometimes use something > like: > portupgrade -P `portversion -vL \=|cut -c 1-24` This may prove infinitely helpful because I've watchmy upgrades rebuild dependencies time after time. No clue how to prevent!! hat's off, gary -- Gary Kline kline@thought.org www.thought.org Public Service Unix