From owner-freebsd-questions@FreeBSD.ORG Sun Jun 26 19:59:38 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C51581065670 for ; Sun, 26 Jun 2011 19:59:38 +0000 (UTC) (envelope-from lars@larseighner.com) Received: from mail.team1internet.com (mail.team1internet.com [216.110.13.10]) by mx1.freebsd.org (Postfix) with ESMTP id 9A7788FC13 for ; Sun, 26 Jun 2011 19:59:38 +0000 (UTC) Received: from larseighner.com (unknown [216.110.13.99]) by mail.team1internet.com (Postfix) with SMTP id ADA0116B4A7; Sun, 26 Jun 2011 14:59:35 -0500 (CDT) Received: by larseighner.com (nbSMTP-1.00) for uid 1001 lars@larseighner.com; Sun, 26 Jun 2011 14:57:52 -0500 (CDT) Date: Sun, 26 Jun 2011 14:57:50 -0500 (CDT) From: Lars Eighner X-X-Sender: lars@noos.6dollardialup.com To: wayne mitchell In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: questions@freebsd.org Subject: Re: cvs vs. DVD 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, 26 Jun 2011 19:59:38 -0000 On Sun, 26 Jun 2011, wayne mitchell wrote: > hey, > be warned, you are dealing with a 'newbie' Be warned, I don't know the official best practices response. I'm just telling you what I would do^H^Htry in your circumstances. > i have one machine that has internet access and another that does not > both machines were installed with FreeBSD_RELEASE_8_1 with a DVD > i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree > > my second machine does not have working ethernet > > how do i transfer the updated ports tree to the other machine using > only storage media (DVD, USB) This is assuming 1) You haven't crossed a major release number since you installed from disc on both. 2) you know how to make a dvd from a file system. Since you are going from BSD to BSD, you don't have to make ISOs, but it will do no harm if you do (and might even be good for you). In the updated machine go to /usr/src/ and make clean. The official right way, I think is to use backup to make the file you will write to DVD and restore on the netdead machine to recreate /usr/src/ from disc. tar + dd or cp might work. (backup and restore are commands, check them out) Then on the netdead machine do the make buildworld, make kernel, etc. to update the machine's system. The instructions are in /usr/src/UPDATING near the bottom. In /usr/ports/ (master machine) use portsclean -CDP. This should clean out all the working directories and the old versions of packages and distributions which are no longer necessary to recreate the ports you have installed. This is not strictly necessary, but there is no point in carrying over the deadwood. If you have a relatively young installation, on the other hand, this may not save much. Now you can do whatever you did (backup/restore), dd, etc. with the source tree to the ports tree. Then you can update ports on the slave machine, or hold off. The important thing is for the ports tree itself to be somewhat in sync with world. > my guess (hack) is to find all relavent files/data trees and simply > copy over, then run necessary updates (portsdb, make world...) Do not mess directly with the ports database (in /var/db/pkg) on either machine. Until you actually do some updates in ports, pkgdb, which deals with installed ports, will not change. > if that is correct then can you tell where those files are ? The whole ports tree is in /usr/ports/. This should include the distfiles and packages you have installed since you installed from disc. The whole source tree is in /usr/src/. It is possible to install from disc without installing either of these, but if you have been cvsup'ing or cvs source and ports on the netlive machine, it certainly has them. If you did not install them on the netdead machine, you can install the copies from the netlive machine without further ado. You can even delete them from the netdead machine (if they are there) on the netdead machine, and you will still have an operable system -- nothing in them is necessary to run. But if you have the disc space, I suggest you rename (mv) them until you know your update is successful. I suggest you go through the mergemaster both times in rebuilding the system on the netdead machine. It is almost impossible to keep configuration files sufficiently in sync to make copying /etc and /usr/local/ect a viable plan (moreover, it would certainly be wrong to do so if both machines are on a net, local or internet). > if not then how should i do this ? I think you are basically on the right track. This probably will work across major releases and with drastically different architectures between the machines, but caution on the target machine is in order. (Other than cleaning, this process should not involve anything remotely dangerous to the source machine.) -- Lars Eighner http://www.larseighner.com/index.html 8800 N IH35 APT 1191 AUSTIN TX 78753-5266