From owner-freebsd-questions@FreeBSD.ORG Thu May 5 23:44:59 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 ECD041065670 for ; Thu, 5 May 2011 23:44:59 +0000 (UTC) (envelope-from olivares14031@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7610B8FC12 for ; Thu, 5 May 2011 23:44:59 +0000 (UTC) Received: by bwz12 with SMTP id 12so3285344bwz.13 for ; Thu, 05 May 2011 16:44:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=Ru99kDvGDPZOu3sLo/HIvCJzkZxjcRjb9EwHCPmHz3k=; b=D6nMlCGXmTBSnaG1fnT6eb3SJZtddNctQx48651Em2Z6ULBP+KcWnqQGYqw58hW0V2 qnBWBGuR9jMV/PZkyaRFExGi8Kr4HfADClmFPhLBSPu0MzhEPvF6iymCfzknEJFbvqlD 5/bCRg3pSmSgTlZllXZcn0OjFxqCE/PpA5A7w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=aeafdbGK0/IAsTx859h7viKf+OoFjEM3lhEwDv8g6uFUjfsTlMio9Iso1nDwYtuDeS pfGoE5OtNlah3mG1fWmI/4iySgmUyIa11S2/B/mZ4s7CL43uOvLw1SpB+YnpXgAclHxg occNno1CMe4kuDox2u6mx2SDJqJ3JtTmFFWTo= MIME-Version: 1.0 Received: by 10.204.16.70 with SMTP id n6mr2843571bka.87.1304639098234; Thu, 05 May 2011 16:44:58 -0700 (PDT) Received: by 10.204.169.65 with HTTP; Thu, 5 May 2011 16:44:58 -0700 (PDT) In-Reply-To: <20110506013353.2e5ea29d.freebsd@edvax.de> References: <20110506013353.2e5ea29d.freebsd@edvax.de> Date: Thu, 5 May 2011 18:44:58 -0500 Message-ID: From: Antonio Olivares To: Polytropon Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD Questions Subject: Re: Does running ``# portupgrade -arRp '' prompt for options or updates everything without prompts? 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: Thu, 05 May 2011 23:45:00 -0000 On Thu, May 5, 2011 at 6:33 PM, Polytropon wrote: > On Thu, 5 May 2011 17:50:28 -0500, Antonio Olivares wrote: >> Tried to do this: >> # portupgrade -f ruby >> # rm /var/db/pkg/pkgdb.db >> # portupgrade -f ruby18-bdb >> # rm /var/db/pkg/pkgdb.db /usr/ports/INDEX-*.db >> # portupgrade -af >> >> Did not work correctly[too many customizations] and Tried again > > I think "customizations" refers to the "make config" > screens, correct? It's the typical kind of interaction > that _nobody_ likes. :-) > Yes these are the ones :) I have encountered two/three days of these :( This is why I am asking. > > >> I had many packages that need to be updated so I am running : >> >> # portupgrade -arRp >> >> will this prompt me for customizations? > > The -P (and -PP) parameters requests precompiled binary > packages - there is no way to configure them (as they have > already been built using the port's default options). > However, as soon as a package is not available, portupgrade > will install the port from source (so make sure your > ports tree is up to date), and it MAY happen that there > is a "make config" interaction. > > The portupgrade program has a --batch parameter that > reflects the BATCH=3Dyes option for make calls (as if you > would use "make install"). > > The "decision tree" is as follows: > > Port can be configured? > =A0 =A0 =A0 =A0Yes. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Port has already been configured? > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Yes. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Build it w= ith that options. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0No. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Ask for op= tions. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Then build= it with that options. > =A0 =A0 =A0 =A0No. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Build port. > > This applies if there is no package (which you require > with the -P parameter to portupgrade). > > Make sure you've understood the upgrading procedures for > the system and the installed applications correctly. > There _may_ be better tools than portupgrade for dealing > with the second part (e. g. portmaster, portmanager). > The command line parameters you've collected make portupgrade > perform a "pkg_add-like upgrade" the binary way. > > Also note the correct order of the upgrade steps: > 1. Upgrade system (with freebsd-update) > 2. Upgrade ports tree (with portsnap) > 3. Upgrade installed software (with portupgrade) > This is exactly more or less what I have done. while doing 1, I encountered several broken ports. But I just skipped those. Ran 2 like the commands I posted. > > As I've mentioned, there are other tools that could take > the place of the "with *" suggested above, but I think > this is the way you intend to go. > > Just as an example, "make config-recursive" allows you to > do all the config screens in one run, one after each other, > and as soon as the settings got saved, they will be used > without any further questions. See "man ports" for details > about the several build targets; also see "man portupgrade" > of other options you might need to create a non-interactive > way of upgrading your installed ports. I should have asked before :(, tried to do it on my own. I have spent two to three days answering questions back and forth and it seemed that I would not finish :( I was not sure to proceed or not, because previously I got burned with many errors that lib????.so , ... and I saw the system working and left it at that. But now I know that to keep a system in good working condition it needs to be updated with security updates :) > > -- > Polytropon > Magdeburg, Germany > Happy FreeBSD user since 4.0 > Andra moi ennepe, Mousa, ... > Thanks for helping out. I have not encountered any prompts(*crossing my fingers*) will let you know how this turns out. Regards, Antonio