From owner-freebsd-questions@FreeBSD.ORG Fri May 6 21:59:12 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 4409F1065670 for ; Fri, 6 May 2011 21:59:12 +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 B2B0D8FC0A for ; Fri, 6 May 2011 21:59:11 +0000 (UTC) Received: by bwz12 with SMTP id 12so4136848bwz.13 for ; Fri, 06 May 2011 14:59:10 -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=FuC8cOniNRnD1/cGCNiPNDzzqeQ8l1qoJ6HHrqJe1lY=; b=msT3PRJz8NR5dp1MPYeW9V4APOZsaO+OhnimhMSVR1AkplO+WfO9Rk8jZTpE6F3DEz R3hAf85hOXOL3EQX0rw+Nsu47rJgcGiJO3CE288TyrYeUNX86w4J5xR2mjycdkf7XYRL PEayv6RbItgk9nHtBqai33Duga1/uGMEJxZNA= 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=rvYGtYKCoXCQetMzlLhnaizbuf9i3rrF8wFOwkLChmT8PyqKcBMC3yimrItjNEZh8r 2jWyqmmA+WFLd3KVWOeVPmVxPI0ngynVaZDI39p5ijMroWzUzS79Bse4/p0IWTXyVMdd KeEHHgzUzS7QQ3fmbLJq88G6/+oflfgVB5+yU= MIME-Version: 1.0 Received: by 10.204.154.199 with SMTP id p7mr841022bkw.114.1304719150280; Fri, 06 May 2011 14:59:10 -0700 (PDT) Received: by 10.204.169.65 with HTTP; Fri, 6 May 2011 14:59:10 -0700 (PDT) In-Reply-To: References: <20110506190941.64bc8ee5.freebsd@edvax.de> Date: Fri, 6 May 2011 21:59:10 +0000 Message-ID: From: Antonio Olivares To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: Polytropon , 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: Fri, 06 May 2011 21:59:12 -0000 On Fri, May 6, 2011 at 8:43 PM, Warren Block wrote: > On Fri, 6 May 2011, Antonio Olivares wrote: >> >> On Fri, May 6, 2011 at 1:52 PM, Antonio Olivares >> >> Sorry for TOP POSTING :(, but do I run >> # portmaster -a -f -D >> >> and do an in place update of all ports? >> is this the recommended way or nuking and rebuilding? > > After the attempt to install every port, I'd remove all, update the ports > tree, and install only the needed ports. =A0Right now you may have many > installed that are not just unneeded but unwanted. > I am following the advice given in man portmaster: Using portmaster to do a complete reinstallation of all your ports: 1. portmaster --list-origins > ~/installed-port-list Print only the ports that have available updates. This can be used as= an alias in your shell. Be sure to fix the line wrapping appropriately. portmaster -L | egrep -B1 '(ew|ort) version|Aborting|installed|dependencies| IGNORE|marked|Reason:|MOVED|deleted|exist|update' | grep -v '^--= ' 2. Update your ports tree 3. portmaster -ty --clean-distfiles 4. portmaster --check-port-dbdir 5. portmaster -Faf 6. pkg_delete -a 7. rm -rf /usr/local/lib/compat/pkg 8. Back up any files in /usr/local you wish to save, such as configuration files in /usr/local/etc 9. Manually check /usr/local and /var/db/pkg to make sure that they are really empty 10. Re-install portmaster 11. portmaster `cat ~/installed-port-list` Mostly everything is step 11 :) Will come back hopefully with a fully updated machine. Regards, Antonio