From owner-freebsd-questions Tue Dec 18 15:32:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by hub.freebsd.org (Postfix) with ESMTP id BA93337B41A for ; Tue, 18 Dec 2001 15:32:03 -0800 (PST) Received: from lungfish.ntlworld.com ([62.253.149.23]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.23 201-229-121-123-20010418) with ESMTP id <20011218233201.OKXW2135.mta02-svc.ntlworld.com@lungfish.ntlworld.com>; Tue, 18 Dec 2001 23:32:01 +0000 Received: from boog.goatsucker.org (boog.goatsucker.org [192.168.1.3]) by lungfish.ntlworld.com (8.11.3/8.11.3) with ESMTP id fBINW0n06372; Tue, 18 Dec 2001 23:32:00 GMT (envelope-from scott@boog.goatsucker.org) Received: (from scott@localhost) by boog.goatsucker.org (8.9.3/8.9.3) id XAA02827; Tue, 18 Dec 2001 23:31:27 GMT (envelope-from scott) Date: Tue, 18 Dec 2001 23:31:26 +0000 From: Scott Mitchell To: Joe & Fhe Barbish Cc: FBSD Questions Subject: Re: How do I update my ports tree? Message-ID: <20011218233125.A395@localhost> References: <20011218111314.A80967@blackhelicopters.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: ; from barbish@a1poweruser.com on Tue, Dec 18, 2001 at 04:06:14PM -0500 X-Operating-System: FreeBSD 4.1-RELEASE i386 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, Dec 18, 2001 at 04:06:14PM -0500, Joe & Fhe Barbish wrote: > Thanks for the pointer, When I cd /cdrom then cd ports I found > the ports.tgz file. Them from that location I issued the tar > command you showed below and It gave some error about some > device not being defined. This is what I had to do to get > it to work. > > The port system is suppose to live in /usr/port on the hard > drive. I installed FBSD and did not select the option to > install the ports collection. So FBSD install only builds the > /usr directory. So to get the ports collection to build I had > to copy the ports.tgz from the cdrom to the /usr directory. > Then I issued the tar command with different flags than you > used, and it built ok. Sure took a long time 15 minutes. > Here are the commands I used. > > Cp /cdrom/ports/ports.tgz /usr # copy tar file from cd to hard drive > Cd /usr # change into /usr directory > Tar -xpzf ports.tgz # run tar to load ports system > Rm ports.tgz # delete ports.tgz file from hard drive I think Michael accidentally left out the 'f' flag to tar in his reply... cd /usr tar xzvf /cdrom/ports/ports.tgz would have done the trick as well, while avoiding copying the tarball. The reason for the long time to unpack everything is that you're creating a LOT (many thousands) of mostly quite small files; this is always going to be a lot slower that writing the same amount of data in bigger chunks -- the disk was seeking like crazy for those 15 minutes, right? :-) Keeping ports.tgz on the CD might have speeded things up a little, since you'd avoid tying up the disk reading the tar file when it could be writing your ports directory. Anyway, enjoy your new ports collection :-) Scott -- =========================================================================== Scott Mitchell | PGP Key ID | "Eagles may soar, but weasels Cambridge, England | 0x54B171B9 | don't get sucked into jet engines" scott.mitchell@mail.com | 0xAA775B8B | -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message