From owner-freebsd-questions Sun Dec 7 13:28:05 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id NAA24228 for questions-outgoing; Sun, 7 Dec 1997 13:28:05 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from BIGFUN.vwcom.com (BIGFUN.vwcom.com [151.197.101.21]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id NAA24102 for ; Sun, 7 Dec 1997 13:26:49 -0800 (PST) (envelope-from bmc@WillsCreek.COM) Received: from WillsCreek.COM (gw.willscreek.com [151.197.101.46]) by BIGFUN.vwcom.com (8.8.6/8.8.6) with ESMTP id QAA01481; Sun, 7 Dec 1997 16:12:16 -0500 (EST) Received: from current.willscreek.com (current.willscreek.com [172.16.87.1]) by WillsCreek.COM (8.8.7/8.8.5) with ESMTP id QAA23824; Sun, 7 Dec 1997 16:17:08 -0500 (EST) Received: (from bmc@localhost) by current.willscreek.com (8.8.7/8.8.5) id QAA06105; Sun, 7 Dec 1997 16:17:06 -0500 (EST) Date: Sun, 7 Dec 1997 16:17:06 -0500 (EST) Message-Id: <199712072117.QAA06105@current.willscreek.com> From: Brian Clapper MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Doug Jolley Cc: questions@freebsd.org Subject: Re: Getting a file from CD-ROM In-Reply-To: <199712070333.TAA25982@jupiter.neptune.net> References: <199712070333.TAA25982@jupiter.neptune.net> X-Mailer: VM 6.23 under Emacs 19.34.1 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Doug Jolley wrote: > Let's say that I would like to get the distribution version > of a particular file from CD-ROM (e.g., /etc/rc.conf). I assume > that it must be in some tarball or something on the CD-ROM since > find doesn't turn it up. My question is this: Is there some > way of determining where the relevant file is packed away so > that I can extract it? The file you seek is in quite a few places, including in tarballs (of sorts) on the installation CD-ROM. However, it's not surprising you didn't find it: The gzipped tarballs are there, but they've been split into subfiles. There are several ways to get the file you mentioned, /etc/rc.conf: 1. Get it from the "source" distribution tarball. Mount the installation CD-ROM. `cd' to its "bin" subdirectory, and run the following command. That command will put the gzipped tarball back together again, uncompress it, and extract "etc/rc.conf" onto standard output, which is then redirected to "/tmp/rc.conf". Note the lack of leading "/" in "etc/rc.conf". cat setc.?? | tar xzfO - etc/rc.conf >/tmp/rc.conf 2. Get it from the "bin" distribution tarball. Mount the installation CD-ROM. `cd' to its "bin" subdirectory, and run the following command. cat bin.?? | tar xzfO - etc/rc.conf >/tmp/rc.conf This will take longer than #1, since the "bin" tarball is enormous. 3. Get it from the source CD-ROM. This time, you don't need to worry about a tarball at all; "/etc/rc.conf" exists as a separate file on the live file system. Put the "live file system" CD-ROM in your drive and mount it. You'll find "rc.conf" in the "etc" subdirectory on that disk. 4. It's also in the CVS repository disk, if you have Walnut Creek's 2.2.5-RELEASE CD-ROM set. ----- Brian Clapper, bmc@WillsCreek.COM, http://WWW.WillsCreek.COM/ Westheimer's Discovery: A couple of months in the laboratory can frequently save a couple of hours in the library.