Date: Wed, 25 Jan 2012 07:48:06 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Victor Sudakov <vas@mpeks.tomsk.su> Cc: freebsd-questions@freebsd.org Subject: Re: portmaster best practices Message-ID: <20120125064806.GA97256@slackbox.erewhon.net> In-Reply-To: <20120124084905.GB99094@admin.sibptus.tomsk.ru> References: <20120123103232.GA79175@admin.sibptus.tomsk.ru> <20120123203502.GC32692@slackbox.erewhon.net> <20120124084905.GB99094@admin.sibptus.tomsk.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
--AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jan 24, 2012 at 03:49:05PM +0700, Victor Sudakov wrote: > > Generally I like to run 'portsnap fetch update' followed by 'portmaster= -ai' > > (after reading /usr/ports/UPDATING) every week. This keeps the number o= f huge > > compilefests (like gettext updates :-() to a minimum. >=20 > Has portmaster ever screwed things up for you? Not really. There have been occasions where some build fails and I have to re-start it. But that is hardly portmaster's fault. The biggest problem is that I have TeXLive installed instead of teTeX. So I have to patch the tex-related ports that I use after using portsnap but before using portmast= er. > > For efficiency, I tend to keep one machine up-to-date in that way, > > and use rsync to then distribute the changes in /usr/local to my > > other machines. This only works for machines that are on the same > > major FreeBSD version and architecture, of course. >=20 > That's interesting. Do you also rsync /var/db/pkg ? In the beginning I did, but I found that I didn't do much upgrading/install= ing on my other machines anyway, so I actually removed /var/db/[pkg|ports] on t= he other machines. And /usr/ports too. The other thing to sync are of course the configuration files because they tend to differ significantly from machine to machine. I keep git repositori= es for the config files of all my machines (and jails) on my main desktop (eve= ry machine its won repo), and use rsync to distribute them to the machine in question where they are installed locally using ssh. E.g, after the update from 8.2 to 9.0, once the main desktop was done, it w= as easy to do a 'git diff'on it's config files and see which changes needed to= be applied to other machines as well. I do this manually since the files can be very different from machine to machine. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --AhhlLboLdkugWU4S Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8fpaYACgkQEnfvsMMhpyVPigCdGaJ678VteR39+l4+4pcwfF9m OPEAn1BgUtSqWnlctNv0d5M+/nPhn7pj =fu04 -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120125064806.GA97256>