Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Dec 2008 19:13:51 +0100
From:      Peter Schuller <peter.schuller@infidyne.com>
To:        "Dr. Jennifer Nussbaum" <bg271828@yahoo.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Copying system/ports configuration?
Message-ID:  <20081217181351.GA10330@hyperion.scode.org>
In-Reply-To: <829861.58495.qm@web53407.mail.re2.yahoo.com>
References:  <829861.58495.qm@web53407.mail.re2.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--IJpNTDwzlM2Ie8A6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

> The last time i did this it took a lot of time to get the VM set up--inst=
alling all the right ports, getting the database configuration right, etc.
>=20
> Are there any shortcuts for this, e.g. a way i can automatically install =
the same ports on the new "machine"? I didnt see anything in the handbook o=
r FAQ about this, but id think that people need to do this all the time. An=
y other advice for mirroring the system?

Opinions definitely vary on what the best method is.

What I do nowadays is to:

  * First of all, never ever interactively configure any ports.
  * Maintain any necessary global options in /etc/make.conf
  * Maintain port specific options in /usr/local/etc/ports.conf,
    and have it applied by ports-mgmt/portconf.
  * Keep a list of packages that I want installed (NOT including
    dependencies).

I then build packages based on this information in a clean
environment; typically a dedicated jail. Because all configuration is
declarative, and nothing is a function of interactive dialogs, I know
I can reproduce the package set + config at any time.

The upgrade on the target machine is a matter of pkg_delete -a to
remove all packages, and then re-installing all the built
binaries.

I have some tools to help me do this that are semi-public, but not
really in a nice state at this time. Let me know off-list if you would
be interested.

--=20
/ Peter Schuller

PGP userID: 0xE9758B7D or 'Peter Schuller <peter.schuller@infidyne.com>'
Key retrieval: Send an E-Mail to getpgpkey@scode.org
E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org


--IJpNTDwzlM2Ie8A6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEARECAAYFAklJQV8ACgkQDNor2+l1i30GegCfbba0cvJunLAeew/zhuQilb88
29sAn38YlXzgZaLuM0Fjs2qdK5UgYsOX
=g36h
-----END PGP SIGNATURE-----

--IJpNTDwzlM2Ie8A6--



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