From owner-freebsd-questions@FreeBSD.ORG Thu Aug 5 14:22:08 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2B39616A507 for ; Thu, 5 Aug 2004 14:22:08 +0000 (GMT) Received: from turkey.mail.pas.earthlink.net (turkey.mail.pas.earthlink.net [207.217.120.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 16B2443D3F for ; Thu, 5 Aug 2004 14:22:08 +0000 (GMT) (envelope-from rpratt1950@earthlink.net) Received: from fl-65-41-25-113.dyn.sprint-hsd.net ([65.41.25.113] helo=kt.weeble.com) by turkey.mail.pas.earthlink.net with smtp (Exim 3.33 #1) id 1Bsj8A-00068t-00; Thu, 05 Aug 2004 07:22:07 -0700 Date: Thu, 5 Aug 2004 10:22:04 -0400 From: Randy Pratt To: m.hauber@mchsi.com Message-Id: <20040805102204.04dda75c.rpratt1950@earthlink.net> In-Reply-To: <200408050956.51071.m.hauber@mchsi.com> References: <200408050956.51071.m.hauber@mchsi.com> X-Mailer: Sylpheed version 0.9.12 (GTK+ 1.2.10; i386-portbld-freebsd4.10) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit cc: freebsd-questions@freebsd.org Subject: Re: portugrade -aR (except) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2004 14:22:08 -0000 On Thu, 5 Aug 2004 09:56:50 -0400 Mike Hauber wrote: > Greetings, all. > > I am running 4.10-Stable, and I have the following question > about portupgrade. > > So far, I have not had a successful build of OpenOffice (on > any version of FreeBSD... ever... so I use their binaries > as they become available), and the samba port is broken > (until I upgrade the system to 5.x). > > What I do now is simply grep a list of installed ports with > updates available and send the outbut to a file. (ie, # > portversion | grep "<" > ~/pupdate.sh ) > > Then I edit ~/pupdate.sh so that every line begins with > "portupgrade -R." (And, of course, I delete the samba and > OpenOffice entries) In other words my file would look > something like this: > > >>> > #!/bin/sh > portupgrade -R blip > portupgrade -R blop > portupgrade -R bluey > <<< > > make it executable, run it overnight, and fix the small > stuff in the morning. > > Obviously, because I like to upgrade my systems every week, > this gets old. Is there any way I can tell portupgrade to > simply portupgrade -aR (except for a specific list of > packages)? > > If not, does anyone have a more simple solution? > > And again, if not, would this be considered a worthy > suggestion for the developers of /portupgrade? > > Thanks Hi, I think what you're looking for is /usr/local/etc/pkgtools.conf . Here is an excerpt from that file: # HOLD_PKGS: array # # This is a list of ports you don't want portupgrade(1) to upgrade, # portversion(1) to suggest upgrading, or pkgdb(1) to fix. Its a very handy tool since you can also set make variables which portupgrade will also honor. Best regards, Randy --