Date: Thu, 27 May 2010 10:26:49 +0200 From: Coert <lgroups@waagmeester.co.za> To: freebsd-questions@freebsd.org Subject: Re: portsnap and portupgrade question Message-ID: <4BFE2CC9.6060307@waagmeester.co.za> In-Reply-To: <20100527084648.fa31f064.freebsd@edvax.de> References: <4BFE0FFE.4060103@waagmeester.co.za> <20100527084648.fa31f064.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote: > On Thu, 27 May 2010 08:23:58 +0200, Coert <lgroups@waagmeester.co.za> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BFE2CC9.6060307>