From owner-freebsd-questions@FreeBSD.ORG Sun Mar 25 13:22:43 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 CBFD216A403 for ; Sun, 25 Mar 2007 13:22:43 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id A7F1613C4B7 for ; Sun, 25 Mar 2007 13:22:43 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 25196 invoked from network); 25 Mar 2007 13:22:42 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 25 Mar 2007 13:22:42 -0000 Received: from Lowell-Desk.localdomain (Lowell-Desk.lan [172.30.250.6]) by be-well.ilk.org (Postfix) with ESMTP id DA69828423; Sun, 25 Mar 2007 09:22:39 -0400 (EDT) Received: by Lowell-Desk.localdomain (Postfix, from userid 1147) id AC1A11CE25; Sun, 25 Mar 2007 09:22:39 -0400 (EDT) To: Gary Kline References: <20070323181909.GA38716@thought.org> From: Lowell Gilbert Date: Sun, 25 Mar 2007 09:22:39 -0400 In-Reply-To: <20070323181909.GA38716@thought.org> (Gary Kline's message of "Fri\, 23 Mar 2007 10\:19\:09 -0800") Message-ID: <44r6rde9uo.fsf@Lowell-Desk.lan> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.93 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: 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 13:22:43 -0000 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? To avoid repackaging all the dependencies, I sometimes use something like: portupgrade -P `portversion -vL \=|cut -c 1-24`