Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Aug 2005 10:04:17 -0700
From:      Danny Howard <dannyman@toldme.com>
To:        Wolfgang Lausenbart <wmiuser@m-net.arbornet.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: cloning installed packages?
Message-ID:  <20050830170417.GB97419@ratchet.nebcorp.com>
In-Reply-To: <20050829055327.A46991@m-net.arbornet.org>
References:  <20050829055327.A46991@m-net.arbornet.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050830170417.GB97419>