Date: Sun, 25 Mar 2007 09:22:39 -0400 From: Lowell Gilbert <freebsd-questions-local@be-well.ilk.org> To: Gary Kline <kline@tao.thought.org> Cc: FreeBSD Mailing List <freebsd-questions@FreeBSD.ORG> Subject: Re: Oops... {upgrading, using a script and pkg_version} Message-ID: <44r6rde9uo.fsf@Lowell-Desk.lan> In-Reply-To: <20070323181909.GA38716@thought.org> (Gary Kline's message of "Fri\, 23 Mar 2007 10\:19\:09 -0800") References: <20070323181909.GA38716@thought.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Gary Kline <kline@tao.thought.org> 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`
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44r6rde9uo.fsf>