From owner-freebsd-questions@FreeBSD.ORG Sun Sep 25 12:11:57 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9EB7C16A425 for ; Sun, 25 Sep 2005 12:11:57 +0000 (GMT) (envelope-from chris@childeric.freeserve.co.uk) Received: from smtp-out4.blueyonder.co.uk (smtp-out4.blueyonder.co.uk [195.188.213.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1C9B043D49 for ; Sun, 25 Sep 2005 12:11:56 +0000 (GMT) (envelope-from chris@childeric.freeserve.co.uk) Received: from [192.168.0.60] ([82.35.113.47]) by smtp-out4.blueyonder.co.uk with Microsoft SMTPSVC(5.0.2195.6713); Sun, 25 Sep 2005 13:12:44 +0100 Message-ID: <43369301.3020501@childeric.freeserve.co.uk> Date: Sun, 25 Sep 2005 13:07:29 +0100 From: Chris User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050805) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <20050924141218.CE8F416415C@ws1-4.us4.outblaze.com> <43358463.6030803@ywave.com> In-Reply-To: <43358463.6030803@ywave.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Sep 2005 12:12:44.0406 (UTC) FILETIME=[6F41B960:01C5C1CA] Subject: Re: portupgrade + make_ports.sh: Fixing everything in one go 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: Sun, 25 Sep 2005 12:11:57 -0000 Micah wrote: > > > Fafa Hafiz Krantz wrote: > >> Hello! >> >> I thought I'd ask you all if my make_ports.sh is as convenient as I think >> it is, or if it's totally off track or what not: >> >> # cat make_ports.sh >> >> cvsup -g -L 2 /etc/cvsupfile >> cd /usr/ports >> make fetchindex >> portupgrade -raP >> portsdb -uU Not the answer to your main question but you only need portsdb -u after you use make fetchindex. -U rebuilds the index which takes a _long_ time on a slow computer and is not necessary if you've just fetched it. Also I'm not clear if one needs the ports tree and INDEX up to date to upgrade using packages, but the portsdb command should be before the portupgrade command (and after make fetchindex). A good read of man pages and the handbook helped me. >> pkgdb -F >> portsclean -CDLP > Which version of FreeBSD are you running? Seems that pre-compiled > packages are only available for the latest release (5.4 right now). You can get packages which are about as current as the ports by setting PACKAGESITE. Eg in csh setenv PACKAGESITE ftp://ftp.uk.freebsd.org/pub/FreeBSD/ports/packages/Latest/ then pkg_add -r whatever works pretty well for me (it needs the trailing forward slash). I've just discovered this so am pretty happy :) Chris