From owner-freebsd-questions@FreeBSD.ORG Thu May 27 06:46:51 2010 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 EFDEC1065673 for ; Thu, 27 May 2010 06:46:51 +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 B0E208FC0C for ; Thu, 27 May 2010 06:46:51 +0000 (UTC) Received: from r55.edvax.de (port-92-195-249-33.dynamic.qsc.de [92.195.249.33]) by mx02.qsc.de (Postfix) with ESMTP id 033FF1ECA5; Thu, 27 May 2010 08:46:49 +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 o4R6knkh003834; Thu, 27 May 2010 08:46:49 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 27 May 2010 08:46:48 +0200 From: Polytropon To: Coert Message-Id: <20100527084648.fa31f064.freebsd@edvax.de> In-Reply-To: <4BFE0FFE.4060103@waagmeester.co.za> References: <4BFE0FFE.4060103@waagmeester.co.za> 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@freebsd.org Subject: Re: portsnap and portupgrade question 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: Thu, 27 May 2010 06:46:52 -0000 On Thu, 27 May 2010 08:23:58 +0200, Coert wrote: > First I completed the freebsd-update > Then I ran portupgrade -av > Then I ran portsnap. It's a bit confusing to me. Why do you first update your installed ports, then the ports database? I would thing it would make more sense in reverse order, i. e. 1. freebsd-update This updates your operating system in binary way. 2. portsnap This brings your ports tree up to date 3. portupgrade -av This updates your installed ports. If you don't have much ports installed, or when you're just beginning to install a system, perform steps 1 and 2 first, then install portupgrade (or portmaster, another great tool), and then install everything else. This way you will receive the latest versions of the ports. If you wish to upgrade your installed system, perform steps 1, 2 and 3 in the proper manner. > When I decided what to make PACKAGESITE I picked 8.0-RELEASE (not STABLE > or CURRENT). As you updated your system with freebsd-update to follow the -RELEASE-p- branch, this is valid. > Now here is my question. > After I ran portsnap fetch extract, I ran portupgrade and got quite a > fright. What does portsnap want to download? 8.0-RELEASE or STABLE? The portsnap program does usually download the latest version of the ports collection. Remember that ports do always get updated, there basically is no -RELEASE, -STABLE or -CURRENT branch for the ports as it is for the OS. > I did not mirror the ports because that would be really big, so it will > cost me a lot of time to upgrade with portupgrade. The ports tree itself is not that big - but installed applications can be. A portupgrade -av call would only upgrade your installed packages, not all that exist in ports tree. > Is there a way to do this with the binary packages instead? Or am I > doing something wrong? Yes, see the excellent documentation in "man portupgrade": There are the -P and -PP switches (and -p might be interesting to you, too, to store and maybe transfer upgraded packages to other systems). Additionally, there's pkg_add -r to install binary packages. You can either install Latest or those refering to -RELEASE, depending on what PACKAGESITE or PACKAGEROOT are set; refer to "man pkg_add" for a better explaination. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...