From owner-freebsd-stable@FreeBSD.ORG Tue Oct 21 00:41:33 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E08BF106567B for ; Tue, 21 Oct 2008 00:41:33 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 9AC828FC1D for ; Tue, 21 Oct 2008 00:41:33 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Ks4m2-0005RV-N6 for freebsd-stable@freebsd.org; Tue, 21 Oct 2008 00:06:58 +0000 Received: from 200.41.broadband11.iol.cz ([90.178.41.200]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 00:06:58 +0000 Received: from gamato by 200.41.broadband11.iol.cz with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Oct 2008 00:06:58 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: martinko Date: Tue, 21 Oct 2008 02:06:50 +0200 Lines: 40 Message-ID: References: <1221990863.929.21.camel@phyll.izb.knu.ac.kr> <48D67AC0.4040301@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 200.41.broadband11.iol.cz User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.17) Gecko/20081009 SeaMonkey/1.1.12 In-Reply-To: <48D67AC0.4040301@FreeBSD.org> Sender: news Subject: Re: easy way to upgrade from 6.3 to 7.1 (including port packages) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Oct 2008 00:41:34 -0000 Doug Barton wrote: > > The generally accepted wisdom (which I am repeating because I agree with > it) is that when updating major versions you should: > > 1. Carefully back up your configuration files and data > 2. Do a clean install of the new version > 3. Update configuration files > 4. Restore data > 5. Re-install your ports. > > What I usually do for step 3 is to un-tar the old configuration files in > a new directory and then diff -ur old/etc /etc, and after ports are > installed I diff -ur old/usr/local/etc /usr/local/etc. > > For step 5, I have a recommended update procedure in the portmaster man > page. Even if you don't intend to use portmaster to re-install your > ports I recommend installing it and reading that part of the man page > before you do your update to get an idea of what is important for you to > restore. > Doug, 1) I wonder if I could use mergemaster to compare 2 directories and merge differencies as neccessary. To explain: I have all config files I touch saved with full path somewhere in /root. And therefore I'd like mergemaster or some other tool to compare all files in my backup directory with newly installed (config) files. 2) I have a file with list of ports I usually install and I created script that try to install them. This is quite useful after `pkg_delete -a`. Now I can do it with `portupgrade -iN $plist` but I haven't figured how I can make portmaster to do the same. Any suggestions please ? Thank you, Martin