From owner-freebsd-questions@FreeBSD.ORG Thu May 27 08:26:55 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 8B06E1065679 for ; Thu, 27 May 2010 08:26:55 +0000 (UTC) (envelope-from lgroups@waagmeester.co.za) Received: from mail.bushveldgrain.co.za (mail.bushveldgrain.co.za [196.25.181.10]) by mx1.freebsd.org (Postfix) with ESMTP id 754078FC1E for ; Thu, 27 May 2010 08:26:54 +0000 (UTC) Received: from localhost (mail.bushveldgrain.co.za [127.0.0.1]) by mail.bushveldgrain.co.za (Postfix) with ESMTP id DF6B6660CB for ; Thu, 27 May 2010 10:26:51 +0200 (SAST) X-Virus-Scanned: amavisd-new at example.com Received: from mail.bushveldgrain.co.za ([127.0.0.1]) by localhost (mail.bushveldgrain.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8QVoRIMQryGS for ; Thu, 27 May 2010 10:26:49 +0200 (SAST) Received: from penguin.coert.local (unknown [196.1.1.163]) by mail.bushveldgrain.co.za (Postfix) with ESMTP id CB08D660B4 for ; Thu, 27 May 2010 10:26:49 +0200 (SAST) Message-ID: <4BFE2CC9.6060307@waagmeester.co.za> Date: Thu, 27 May 2010 10:26:49 +0200 From: Coert User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4BFE0FFE.4060103@waagmeester.co.za> <20100527084648.fa31f064.freebsd@edvax.de> In-Reply-To: <20100527084648.fa31f064.freebsd@edvax.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: portsnap and portupgrade question 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, 27 May 2010 08:26:55 -0000 Polytropon wrote: > 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. > > > > > Hello Polytropon, The order of operations makes sense. I ran it that way now I checked the man page, and the -PP option is indeed what I am looking for. What I do see though, portupgrade is attempting to download the STABLE packages and not RELEASE. I have read nearly all of Chapter 24, and I looked at Chapter 4 as well. And I have scrunged through portsnap and portupgrade's man pages, but I can not yet find a way to force it to use RELEASE. I apologize if this is maybe a stupid noob thing.... Should I maybe not have used portsnap, so as to keep to ports tree that came with the release? Is there a way to get the original release ports tree back? Or should I maybe just be using STABLE? Here is what I get when I run portupgrade -PPanv ---> Checking for the latest package of 'net/rsync' ---> Found a package of 'net/rsync': /var/packages/FreeBSD/8.0-release-i386/Latest/rsync.tbz (rsync-3.0.6) ---> Fetching the package(s) for 'rsync-3.0.7' (net/rsync) ---> Fetching rsync-3.0.7 ++ Will try the following sites in the order named: ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/i386/packages-8.0-release/ ---> Invoking a command: /usr/bin/fetch -o '/var/tmp/portupgradeINlbeDr0/rsync-3.0.7.tbz' 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz' fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz: File unavailable (e.g., file not found, no access) ** The command returned a non-zero exit status: 1 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tbz ---> Invoking a command: /usr/bin/fetch -o '/var/tmp/portupgradeINlbeDr0/rsync-3.0.7.tgz' 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz' fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz: File unavailable (e.g., file not found, no access) ** The command returned a non-zero exit status: 1 ** Failed to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/All/rsync-3.0.7.tgz ** Failed to fetch rsync-3.0.7 ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) ! rsync-3.0.7 (fetch error) ---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed ---> Fetching the latest package(s) for 'rsync' (net/rsync) ---> Fetching rsync ++ Will try the following sites in the order named: ftp://ftp.FreeBSD.org//pub/FreeBSD/ports/i386/packages-8.0-release/ ---> Invoking a command: /usr/bin/fetch -o '/var/tmp/portupgradeDlJGIGWL/rsync.tbz' 'ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/i386/packages-8.0-release/Latest/rsync.tbz' /var/tmp/portupgradeDlJGIGWL/rsync.tbz 100% of 252 kB 33 kBps ---> Downloaded as rsync.tbz ---> Identifying the package /var/tmp/portupgradeDlJGIGWL/rsync.tbz ---> Saved as /usr/ports/packages/All/rsync-3.0.6.tbz ---> Listing the results (+:done / -:ignored / *:skipped / !:failed) + rsync@ ---> Packages processed: 1 done, 0 ignored, 0 skipped and 0 failed ---> Found a package of 'net/rsync': /var/packages/FreeBSD/8.0-release-i386/Latest/rsync.tbz (rsync-3.0.6) ---> Located a package version 3.0.6 (/var/packages/FreeBSD/8.0-release-i386/Latest/rsync.tbz) ** Ignoring the package, which is the same version as is installed (3.0.6) ** No package available: net/rsync Thanks for all your time and patience, Coert