From owner-freebsd-questions@FreeBSD.ORG Fri May 6 17:09:44 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 E5C4F1065675 for ; Fri, 6 May 2011 17:09:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id A72BB8FC0C for ; Fri, 6 May 2011 17:09:44 +0000 (UTC) Received: from r55.edvax.de (port-92-195-63-204.dynamic.qsc.de [92.195.63.204]) by mx02.qsc.de (Postfix) with ESMTP id 32BE91D906; Fri, 6 May 2011 19:09:42 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id p46H9fFm001620; Fri, 6 May 2011 19:09:41 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 6 May 2011 19:09:41 +0200 From: Polytropon To: Antonio Olivares Message-Id: <20110506190941.64bc8ee5.freebsd@edvax.de> In-Reply-To: References: Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2011 17:09:45 -0000 On Fri, 6 May 2011 11:36:07 -0500, Antonio Olivares wrote: > This is what I am running now ATM > > # cd /usr/ports/ > # make clean build deinstall install > > Will it install all the ports? or only the ones that are installed? Oh, I've never tried that... "install all ports"... I even doubt this is possible. If you want to intendedly deinstall all _except_ the OS software, you can do this: # cd /usr/local # rm -rf * # mtree < /etc/mtree/BSD.local.dist It's worth mentioning that this is a very hard method. Maybe it's much better if you utilize the ports infra- structure. # cd /var/db/pkg # pkg_delete -fad or # pkg_delete -f * This should remove all ports in a clean way. You can also remove stuff from /usr/ports/distfiles and /usr/ports/packages. Then make sure you have updated your ports tree. In case you also want an OS update, do it _now_ (i. e. prior to dealing with ports). In case you keep using portupgrade (and therefore portinstall), maybe in combination with pkg_add -r if you prefer - like me :-) - installing binary packages, make sure that you run BEFORE and AFTER each "big step", just to be sure # pkgdb -aF This keeps portinstall's own database in sync with what you are doing on your system with other tools. Oh, and you can _still_ use "make install" like installations directly from the ports tree - no problem. Another "secret": Start with installing one of the bigger software packages you need, as this will pull in many of the dependencies, and you don't have to install those first, by hand. If you want to compile, use gmencoder for example, and select all options you need (remember to do "make config-recursive" before "make install"). Sometimes, you'll find it's easier to begin with a new software installation from scratch. Maybe this is a good moment to do so. :-) And a sidenote: If you intend to use the packages you've build on a different system (to install them there), use "make package", or much easier with portupgrade or portinstall: use the -p option. This will place precompiled (haha) binary packages in /usr/ports/packages that you can transfer to another system and install with them with pkg_add there - VERY handy solution! -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...