From owner-freebsd-questions@FreeBSD.ORG Fri Oct 21 20:42:00 2011 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 CC748106564A for ; Fri, 21 Oct 2011 20:42:00 +0000 (UTC) (envelope-from mcg@sulfegate.org) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8D5868FC08 for ; Fri, 21 Oct 2011 20:42:00 +0000 (UTC) Received: by yxt33 with SMTP id 33so491466yxt.13 for ; Fri, 21 Oct 2011 13:41:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sulfegate.org; s=google; h=mime-version:sender:x-originating-ip:from:date:x-google-sender-auth :message-id:subject:to:content-type:content-transfer-encoding; bh=J6WeYyvgJhij6mX2kPNfv8KQ/qwqft0XlY0wRSSguGo=; b=fi3rGHWTwrjzsuPJywH8BzhRfk+VB5dwatZSEnkq2XZEPGboF2srEUf/+PxDqpvl7D L6JWShbD55LvdbwYZYIb51TPOaom/V0wxWX8VQhIs18WWVr6Mz377b3EOCCKoMvSZqRA a+ecKtY/4qCUhnAXhc3BpgdlKz2F200Oum+J4= Received: by 10.68.23.6 with SMTP id i6mr30100438pbf.13.1319228010144; Fri, 21 Oct 2011 13:13:30 -0700 (PDT) MIME-Version: 1.0 Sender: mcg@sulfegate.org Received: by 10.142.174.6 with HTTP; Fri, 21 Oct 2011 13:13:00 -0700 (PDT) X-Originating-IP: [98.170.233.66] From: "Galati, Michael" Date: Fri, 21 Oct 2011 15:13:00 -0500 X-Google-Sender-Auth: 75Jgnd-dlk1ZjHPGGqNLke5TNCg Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: which ports require dialog during update 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: Fri, 21 Oct 2011 20:42:00 -0000 > =A0>Hi, Is there a way to tell which ports might require dialog input > during update, i have some auto update scripts > > Stop doing this. > > > > Your update scripts do not read /usr/ports/UPDATING. > > Your update scripts do not read package changelogs. > > > > What you're doing is irresponsible, and potentially dangerous/harmful i= f > > your server is in production. > > > > You should really be very careful about this. > i do of course read those files (which require daily checking to confirm > usually no relevant changes, but thats another issue!).. > > however i don't need to read UPDATING on every box, (this tool is an > assistent, not a replacement, for monitored updates.) > > i do need to check that an update that went fine on the initial test box > will behave the same on other boxes, which is my question, > > can i tell if =A0the options dialog is going to be invoked? > > thanks > Paul. If you use portmaster, it will get the make config step out of the way up front (as others have mentioned). Since you're already building on a test machine, why not use that system to build packages for your other systems? Invoking portmaster with the "-g" option will create packages in /usr/ports/packages. From there, upload the packages to an FTP (or HTTP) server, or host them directly the test machine. Setting the PACKAGEROOT environment variable will make pkg_add -r pull packages from the test machine. Doing things this way, you don't have to worry about getting prompted for package options. I'm yet to see any package actually require user interaction during install, but YMMV. This method, however, assumes that: - You are running the same version of FreeBSD on all systems - You use the same CPU arch. on all systems - You do not need ports build with different options on some systems - You are not using any conflicting packages Unfortunately, there's no good way of upgrading packages on FreeBSD (that I'm aware of, at least). My solution (crude as it may be) has been to remove all the packages and reinstall. HTH, Michael