From owner-freebsd-questions@FreeBSD.ORG Mon Jun 27 09:57:34 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 A71221065677 for ; Mon, 27 Jun 2011 09:57:34 +0000 (UTC) (envelope-from btillman99@yahoo.com) Received: from nm15-vm0.bullet.mail.bf1.yahoo.com (nm15-vm0.bullet.mail.bf1.yahoo.com [98.139.212.254]) by mx1.freebsd.org (Postfix) with SMTP id 4DE3C8FC14 for ; Mon, 27 Jun 2011 09:57:34 +0000 (UTC) Received: from [98.139.212.152] by nm15.bullet.mail.bf1.yahoo.com with NNFMP; 27 Jun 2011 09:43:39 -0000 Received: from [98.139.212.228] by tm9.bullet.mail.bf1.yahoo.com with NNFMP; 27 Jun 2011 09:43:39 -0000 Received: from [127.0.0.1] by omp1037.mail.bf1.yahoo.com with NNFMP; 27 Jun 2011 09:43:39 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 634012.59667.bm@omp1037.mail.bf1.yahoo.com Received: (qmail 97683 invoked by uid 60001); 27 Jun 2011 09:43:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1309167818; bh=NmYI8kkSFOBG096J/SvC5xc/rDbgsaoe3MoJGNdrP3U=; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=xKdVK9UWr6HbzRZDxZ15jpcSJeMLffHWv6ae+hvtGWZq89XXHRucM0d+ne1H5tneEjnGM7/7qrsgSLBuqgsaNJ6o+/bxRvSIZVfV3jjiKhcz9p2ubUUYJVKIsZL/2uZpT6CQK+EYrxj0iGSV71zA8BtVxQj+loDMBTElL3y/ZWM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:References:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=CbQHjLsIB9nyBlIR79di15y3V6snPDMkew18/+3OCBwH64ERIRdXQQ/OmMrlvH+LkuRC71nvrJD9kYgZP+3y142Y3KFiIn7guA+LuUvpsUmqsZHNa5Vvdh1ZR9bHDa6slXhBGQ/2SNwYmGHp6zkXOOv6qGz0MV1V7QUCW8JPo60=; X-YMail-OSG: KkS9d.wVM1nJF4dM7yb1pH_pdouPaKV1Mfbp0nlFB1dV2Zz pYO3NHrTDCLwKfnIeDppszmmIRykMdNyKYzOpjOB9_sWscLZkMDPyQtds4YY SVsZr5Ak2iFYILbLLOGsGGkurtVTECRF3GYWwTIBRVdtDyxpo6xQDH8ckqMO CSTsEFGBGtq9kAITbu9ZaCZ88M2vvfSMSl.OmrXeawUjjWiQD.i_BwKkAtO4 _jmLMGuTq9w_c4oiWwGUcMcQrL.g573H_3ljWM4L_kq1FIN1f4RZ16pjl7Pw NnZHVIGU9f7SUMs8c_QC2xeoed7c8URcB2IUeO6FlZzUphzXfnsUiDxvoB7C vQCCXWWjD27XUaTwIosDx84j1uvY8AtucTC.T7zo4NVO3QeTBoaDMKKmd2kQ ZM4QxB_U9PZpmSPoudB7Gsa2ZezJmgjUOiYngTdKJZp4- Received: from [76.108.201.66] by web36507.mail.mud.yahoo.com via HTTP; Mon, 27 Jun 2011 02:43:38 PDT X-Mailer: YahooMailRC/572 YahooMailWebService/0.8.112.307740 References: Message-ID: <1309167818.80767.YahooMailRC@web36507.mail.mud.yahoo.com> Date: Mon, 27 Jun 2011 02:43:38 -0700 (PDT) From: Bill Tillman To: Lars Eighner , wayne mitchell In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Mon, 27 Jun 2011 09:57:34 -0000 =0A=0A=0A=0A=0A________________________________=0AFrom: Lars Eighner =0ATo: wayne mitchell = =0ACc: questions@freebsd.org=0ASent: Sun, June 26, 2011 3:57:50 PM=0ASubjec= t: Re: cvs vs. DVD=0A=0AOn Sun, 26 Jun 2011, wayne mitchell wrote:=0A=0A> h= ey,=0A> be warned, you are dealing with a=A0 'newbie'=0A=0A=0ABe warned, I = don't know the official best practices response.=A0 I'm =0Ajust telling you= what I would do^H^Htry in your circumstances.=0A=0A> i have one machine th= at has internet access and another that does not=0A> both machines were ins= talled with FreeBSD_RELEASE_8_1 with a DVD=0A> i am now using cvsup to upgr= ade the RELENG_8_1_RELEASE tree=0A>=0A> my second machine does not have wor= king ethernet=0A>=0A> how do i transfer the updated ports tree to the other= machine using=0A> only storage media (DVD, USB)=0A=0AThis is assuming 1) Y= ou haven't crossed a major release number since you=0Ainstalled from disc o= n both. 2) you know how to make a dvd from a file=0Asystem.=A0 Since you ar= e going from BSD to BSD, you don't have to make ISOs,=0Abut it will do no h= arm if you do (and might even be good for you).=0A=0AIn the updated machine= go to /usr/src/ and make clean.=A0 The official right=0Away, I think is to= use backup to make the file you will write to DVD and=0Arestore on the net= dead machine to recreate /usr/src/ from disc. tar + dd or=0Acp might work. = (backup and restore are commands, check them out)=0A=0AThen on the netdead = machine do the make buildworld, make kernel, etc. to=0Aupdate the machine's= system.=A0 The instructions are in /usr/src/UPDATING near=0Athe bottom.=0A= =0AIn /usr/ports/ (master machine) use portsclean -CDP. This should clean o= ut=0Aall the working directories and the old versions of packages and=0Adis= tributions which are no longer necessary to recreate the ports you have=0Ai= nstalled.=A0 This is not strictly necessary, but there is no point in=0Acar= rying over the deadwood.=A0 If you have a relatively young installation,=0A= on the other hand, this may not save much.=0A=0ANow you can do whatever you= did (backup/restore), dd, etc. with the source=0Atree to the ports tree.= =A0 Then you can update ports on the slave machine, or=0Ahold off. The impo= rtant thing is for the ports tree itself to be somewhat=0Ain sync with worl= d.=0A=0A> my guess (hack) is to find all relavent files/data trees and simp= ly=0A> copy over, then run necessary updates (portsdb, make world...)=0A=0A= Do not mess directly with the ports database (in /var/db/pkg) on either=0Am= achine.=A0 Until you actually do some updates in ports, pkgdb, which=0Adeal= s with installed ports, will not change.=0A=0A> if that is correct then can= you tell where those files are ?=0A=0AThe whole ports tree is in /usr/port= s/.=A0 This should include the distfiles=0Aand packages you have installed = since you installed from disc.=A0 The=0Awhole source tree is in /usr/src/.= =A0 It is possible to install from disc=0Awithout installing either of thes= e, but if you have been cvsup'ing or cvs=0Asource and ports on the netlive = machine, it certainly has them.=A0 If you did=0Anot install them on the net= dead machine, you can install the copies from=0Athe netlive machine without= further ado.=A0 You can even delete them from=0Athe netdead machine (if th= ey are there) on the netdead machine, and you=0Awill still have an operable= system -- nothing in them is necessary to run.=0ABut if you have the disc = space, I suggest you rename (mv) them until you=0Aknow your update is succe= ssful.=A0 I suggest you go through the mergemaster=0Aboth times in rebuildi= ng the system on the netdead machine. It is almost=0Aimpossible to keep con= figuration files sufficiently in sync to make copying=0A/etc and /usr/local= /ect a viable plan (moreover, it would certainly be wrong=0Ato do so if bot= h machines are on a net, local or internet).=0A=0A=0A> if not then how shou= ld i do this ?=0A=0AI think you are basically on the right track.=0A=0AThis= probably will work across major releases and with drastically different=0A= architectures between the machines, but caution on the target machine is in= =0Aorder.=A0 (Other than cleaning, this process should not involve anything= =0Aremotely dangerous to the source machine.)=0A=0A-- =0ALars Eighner=0Ahtt= p://www.larseighner.com/index.html=0A8800 N IH35 APT 1191 AUSTIN TX 78753-5= 266=0A=0A_______________________________________________=0Afreebsd-question= s@freebsd.org mailing list=0Ahttp://lists.freebsd.org/mailman/listinfo/free= bsd-questions=0ATo unsubscribe, send any mail to "freebsd-questions-unsubsc= ribe@freebsd.org"=0A=0A=0A=0ACall me old-fashioned but with Ethernet cards = only costing $5 these days, what's =0Aholding you back from installing a NI= C in the other machine. This would simplify =0Aall your problems.