From owner-freebsd-questions@FreeBSD.ORG Mon Sep 18 21:28:20 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 2026E16A49E for ; Mon, 18 Sep 2006 21:28:20 +0000 (UTC) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A2F743D78 for ; Mon, 18 Sep 2006 21:28:12 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend3.internal (frontend3.internal [10.202.2.152]) by frontend1.messagingengine.com (Postfix) with ESMTP id D819EDA7C0E for ; Mon, 18 Sep 2006 16:57:58 -0400 (EDT) Received: from heartbeat1.internal ([10.202.2.160]) by frontend3.internal (MEProxy); Mon, 18 Sep 2006 16:58:00 -0400 X-Sasl-enc: bBkxpbzRq6GPGE1dCCqwAI6P+634FCmEVsDUjIy0kFKt 1158613080 Received: from [192.168.1.2] (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mail.messagingengine.com (Postfix) with ESMTP id 11A446C18 for ; Mon, 18 Sep 2006 16:57:59 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Mon, 18 Sep 2006 21:57:54 +0100 User-Agent: KMail/1.9.4 References: <20060917133514.59120.qmail@web34407.mail.mud.yahoo.com> In-Reply-To: <20060917133514.59120.qmail@web34407.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609182157.55945.list-freebsd-2004@morbius.sent.com> Subject: Re: Moving to new PC 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, 18 Sep 2006 21:28:20 -0000 On Sunday 17 September 2006 14:35, White Hat wrote: > I am planning on migrating to a new PC in the near > future, perhaps after FBSD 6.2 is released. I was > therefore wondering if the following scenario was > possible. > > 1) Tar up the /var/db/pkg directory on old system > 2) Untar the collection into the same location on new > PC > 3) Run portsnap to get an up-to-date ports collection > 4) Run portmanager to actually install the ports. > > I have close to 500 entries in the directory and > trying to install them all manually is a lot of work. > Of course there are META packages like KDE, but still > I would have a lot of manual work involved to get it > all back to the same state I had it in on the old PC. Most of those 500 entries will be installed as a side effect, of a much smaller number of leaf-ports (around 10% in my case). You've probably already done your move, but for future reference, or in case you run into problems, I would suggest this: 1. Run "portmanager -slid" to remove any unwanted leaf-ports (probably all the ones you dont remember installing) 2. run the following (which may take several minutes) to generate a list of the remaining leaves: portmanager -sl |awk '{ print $2 }' |egrep "^/[^/[:space:]]+/" > leafports 3 copy the leafports file to the new machine and run something like: cat leafports | xargs portmanager