From owner-freebsd-questions@FreeBSD.ORG Tue Aug 30 17:04:19 2005 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 7287316A41F for ; Tue, 30 Aug 2005 17:04:19 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: from ratchet.nebcorp.com (ratchet.nebcorp.com [205.217.153.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CCEC43D45 for ; Tue, 30 Aug 2005 17:04:17 +0000 (GMT) (envelope-from djh@nebcorp.com) Received: by ratchet.nebcorp.com (Postfix, from userid 1014) id 28A67D9830; Tue, 30 Aug 2005 10:04:17 -0700 (PDT) Date: Tue, 30 Aug 2005 10:04:17 -0700 From: Danny Howard To: Wolfgang Lausenbart Message-ID: <20050830170417.GB97419@ratchet.nebcorp.com> References: <20050829055327.A46991@m-net.arbornet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050829055327.A46991@m-net.arbornet.org> User-Agent: Mutt/1.4.2.1i X-Loop: djhoward@uiuc.edu Cc: freebsd-questions@freebsd.org Subject: Re: cloning installed packages? 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: Tue, 30 Aug 2005 17:04:19 -0000 On Mon, Aug 29, 2005 at 05:53:27AM -0400, Wolfgang Lausenbart wrote: > I want to setup a FreeBSD 5.4 Server, which should have all > packages, as an older 4.11 based Server. What is the best > way of providing the same packages to as installed on the > 4.11 based? Note that it must not be *exactly* the same :o) > > Is there any option to sysinstall/pkg_* to import a list > of packages? > > Well, the ports collection might then be cvsupd'd... Wolfgang, How about: pkg_info -oa | grep / You can feed that to portinstall, or such: pkg_info -oa | grep / > manifest.txt <... copy manifest.txt to your new system ...> cd /usr/ports/sysutils/portupgrade && make install && rehash portinstall -p `cat manifest.txt` Cheers, -danny -- http://dannyman.toldme.com/