From owner-freebsd-questions@FreeBSD.ORG Sat Oct 2 10:51:08 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F3C47106567A for ; Sat, 2 Oct 2010 10:51:07 +0000 (UTC) (envelope-from eliaschr@cha.forthnet.gr) Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.107]) by mx1.freebsd.org (Postfix) with ESMTP id 5D9848FC15 for ; Sat, 2 Oct 2010 10:51:06 +0000 (UTC) Received: from mx-av-03.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-03.forthnet.gr (8.14.3/8.14.3) with ESMTP id o92AdSvK030535 for ; Sat, 2 Oct 2010 13:39:28 +0300 Received: from MX-IN-01.forthnet.gr (mx-in-01.forthnet.gr [193.92.150.23]) by mx-av-03.forthnet.gr (8.14.3/8.14.3) with ESMTP id o92AdSlU001111 for ; Sat, 2 Oct 2010 13:39:28 +0300 Received: from pluto.universe (188.4.97.35.dsl.dyn.forthnet.gr [188.4.97.35]) by MX-IN-01.forthnet.gr (8.14.3/8.14.3) with ESMTP id o92AdRCo018298 for ; Sat, 2 Oct 2010 13:39:28 +0300 Authentication-Results: MX-IN-01.forthnet.gr smtp.mail=eliaschr@cha.forthnet.gr; spf=neutral Authentication-Results: MX-IN-01.forthnet.gr header.from=eliaschr@cha.forthnet.gr; sender-id=neutral From: Elias Chrysocheris To: freebsd-questions@freebsd.org Date: Sat, 2 Oct 2010 13:39:25 +0300 User-Agent: KMail/1.13.5 (FreeBSD/8.1-RELEASE; KDE/4.5.1; amd64; ; ) References: <4ca708f4.svuMWmkOCHSjxBDf%mueller6727@bellsouth.net> In-Reply-To: <4ca708f4.svuMWmkOCHSjxBDf%mueller6727@bellsouth.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201010021339.26533.eliaschr@cha.forthnet.gr> Subject: Re: Massive portupgrade without being interrupted by configuration screens? 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: Sat, 02 Oct 2010 10:51:08 -0000 On Saturday 02 of October 2010 13:27:00 Thomas Mueller wrote: > How can one do a massive portupgrade, as with -r or -R, without being > interrupted by options configuration screens for many individual ports? > Idea is to let it run unattended such as when I might run it starting just > before bedtime. Doing "make config" ahead of time also gives the chance > to recover from a typo at the configuration screen (high risk). > > Best thing I can think of is, using multimedia/ffmpeg as an example, is > doing a dry run > > portupgrade -Rn multimedia/ffmpeg |& tee -a wouldbe.log > > This would show what other packages would need to be portupgraded and avoid > reconfiguring up-to-date dependencies. Then I would go to each of those > directories in the ports tree and run "make config". > > Running "make config-recursive" in /usr/ports/multimedia/ffmpeg would > produce configuration screens for all dependencies, including those that > are up-to-date. > > I tried > > portupgrade -RCn multimedia/ffmpeg |& tee -a wouldbe.log > > but then I got all dependency configuration screens, including those that > were up-to-date, and also the interface didn't work right: I got garbage > when trying to respond; it didn't write to the configuration screen but > produced non-color garbage to the background. > > Running "make config-recursive" in /usr/ports/multimedia/ffmpeg would > configure all dependencies, including those that are up-to-date and > therefore not in need of portupgrading, though "make config-recursive" > seems appropriate for a first build/install of a port. > > But I think there is no perfect way to be sure of doing all "make config"s > in advance, since selectable options could require additional > dependencies. > > If you try to portupgrade perl to 5.12 and everything that depends on it, > as advised in UPDATING file, date 20100715, you will likely get a lot of > configuration dialog screens: I speak from experience, would surely like a > way to do all these "make config"s at the beginning. > > Tom > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" If you are sure that the default configuration settings are OK for you, then one way is to perform a portupgrade with the switches --batch --yes, like portupgrade --batch --yes -a This will assume that the default settings are those you like and will not ask you anything about configuration screens e.t.c. Elias