From owner-freebsd-questions@FreeBSD.ORG Fri May 6 17:53:07 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 653251065674 for ; Fri, 6 May 2011 17:53:07 +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 D9B338FC08 for ; Fri, 6 May 2011 17:53:06 +0000 (UTC) Received: by bwz12 with SMTP id 12so3931249bwz.13 for ; Fri, 06 May 2011 10:53:05 -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=1fmOgFr2IbV0Y5crT/97jgXmsNO6ikhcSPtlVHtBNvM=; b=KC4HtOSpksFmU3vdkEkFb30NQ8mzfCQ+3lbR9PZmF1+2lF8RwFW7nQ0TA8WAOXhgiF 82PNV2srRPYuw/Etk8kDOVnmVqowyBmR0G4wF6/iU8u3P6VQGwDGGD5+FaAbqBjf11PV BQ2dixzRaehaTAhgnmu35WYiZLjbuOJPn2r0U= 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=aAnVjkOGPLPzSaes0g1KTu6K5g/PJikKsBnEOWcWkdeOFZnQ9CIxySswU9RbuWhih+ GnDZV/zFA676pZnazduCm2jPwWOxsYDAaYHXB5jcGg2pRfFRBMNSDUU596Dh2+9p2N5f p1UDnK2bzca6sb8FVNnzgoqkhN/6liNepcMd0= MIME-Version: 1.0 Received: by 10.204.126.38 with SMTP id a38mr639568bks.195.1304704385618; Fri, 06 May 2011 10:53:05 -0700 (PDT) Received: by 10.204.169.65 with HTTP; Fri, 6 May 2011 10:53:05 -0700 (PDT) In-Reply-To: <20110506190941.64bc8ee5.freebsd@edvax.de> References: <20110506190941.64bc8ee5.freebsd@edvax.de> Date: Fri, 6 May 2011 12:53:05 -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: Fri, 06 May 2011 17:53:07 -0000 On Fri, May 6, 2011 at 12:09 PM, Polytropon wrote: > 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? =A0 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: > > =A0 =A0 =A0 =A0# cd /usr/local > =A0 =A0 =A0 =A0# rm -rf * > =A0 =A0 =A0 =A0# 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. > > =A0 =A0 =A0 =A0# cd /var/db/pkg > =A0 =A0 =A0 =A0# pkg_delete -fad > > or > > =A0 =A0 =A0 =A0# 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 > > =A0 =A0 =A0 =A0# 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, ... > I am trying out portmaster. Have stuck with command # portmaster -na > /tmp/portorder.txt but it is hanging there. Will go to lunch before doing anything. Then ready to proceed. Thanks, Antonio