From owner-freebsd-questions@FreeBSD.ORG Wed Nov 5 00:30:38 2003 Return-Path: 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 C6DF816A4CE for ; Wed, 5 Nov 2003 00:30:38 -0800 (PST) Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF04C43F85 for ; Wed, 5 Nov 2003 00:30:37 -0800 (PST) (envelope-from jonc@chen.org.nz) Received: by chen.org.nz (Postfix, from userid 1000) id 7CCEB1362A; Wed, 5 Nov 2003 21:30:36 +1300 (NZDT) Date: Wed, 5 Nov 2003 21:30:36 +1300 From: Jonathan Chen To: Mike Hoskins Message-ID: <20031105083036.GA1824@grimoire.chen.org.nz> References: <20031105000011.F89236@fubar.adept.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031105000011.F89236@fubar.adept.org> User-Agent: Mutt/1.4.1i cc: questions@freebsd.org Subject: Re: 4.x -> 5.x X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2003 08:30:38 -0000 On Wed, Nov 05, 2003 at 12:08:24AM -0800, Mike Hoskins wrote: [...] > my question is, what's the best way to move 4.x packages to 5.x? i'm > not talking binaries of course, but reproducing the set of installed > packages from data in /var/db/pkg. i've read through the man pages for > pkg*, portupgrade, etc... and i'm thinking it may be simple enough to > just tar /var/db/pkg under 4.x, restore under 5.x, and then portupgrade > the tree. i've tried it with a couple ports and it works, but i haven't > tried it with an entire tree yet (more complex, with more dependencies to > keep straight). am i headed in the right direction, or is this a "bad > idea". :) this is just to get the "same set of binaries" back on the 5.x > system, merging configs, etc. is given it's own blurbage. Actually, this sounds like a very clever way of reproducing your ports setup. A "portupgrade -fRr \*" should do the trick. Wish I'd thought of it first.. Cheers. -- Jonathan Chen ----------------------------------------------------------------------- "One, with God, is always a majority, but many a martyr has been burned at the stake while the votes were being counted." -- Thomas B. Reed