From owner-freebsd-questions@freebsd.org Mon Jan 4 02:52:10 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9A8BBA6139F for ; Mon, 4 Jan 2016 02:52:10 +0000 (UTC) (envelope-from gregory.orange@calorieking.com) Received: from pandora.au.calorieking.net (mail.au.calorieking.net [115.70.179.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 42D8E15F1 for ; Mon, 4 Jan 2016 02:52:09 +0000 (UTC) (envelope-from gregory.orange@calorieking.com) Received: from pandora.au.calorieking.net (localhost [127.0.0.1]) by pandora.au.calorieking.net (Postfix) with ESMTP id 18E0DE3 for ; Mon, 4 Jan 2016 10:46:26 +0800 (WST) X-Virus-Scanned: amavisd-new at calorieking.com Received: from pandora.au.calorieking.net ([127.0.0.1]) by pandora.au.calorieking.net (mail.au.calorieking.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w3y_UU8spjyC for ; Mon, 4 Jan 2016 10:46:25 +0800 (WST) Received: from [192.168.2.118] (freia.ne1.au.calorieking.net [192.168.2.118]) by pandora.au.calorieking.net (Postfix) with ESMTPSA id A380FDF for ; Mon, 4 Jan 2016 10:46:25 +0800 (WST) Subject: Re: Upgrade from 8.4 to 10.2 To: freebsd-questions@freebsd.org References: <566E367B.70604@calorieking.com> From: Gregory Orange Message-ID: <5689DCFF.1070104@calorieking.com> Date: Mon, 4 Jan 2016 10:46:23 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jan 2016 02:52:10 -0000 On 27/12/15 22:33, Odhiambo Washington wrote: > On 14 December 2015 at 06:24, Gregory Orange > wrote: >> On 12/12/15 19:50, Peter Harrison via freebsd-questions wrote: >>> I have a server I want to upgrade from 8.4-R to 10.2 using a binary >>> upgrade. >>> What's the preferred way of doing that? Ie. Should I jump to 9 first? And >>> can I safely do it remotely or do I need to be on front of the console? >>> >> FWIW I successfully upgraded over a dozen FreeBSD 8.4 amd64 machines >> straight to 10.1 earlier this year, bypassing 9.x all together. One of the >> machines had bad enough problems to require a reinstall, but it was very >> old hardware and I didn't have physical access to it so I never got to the >> root cause. In the end we chucked it and got a new machine anyway. >> > What procedure did you use? I used the binary upgrade procedure[1] (since I mostly use -RELEASE versions of FreeBSD), something like this: # freebsd-update -r 10.1-RELEASE upgrade # freebsd-update install # reboot # freebsd-update install # pkg_list=$(pkg info -aoq) # pkg delete -a # pkg install $pkg_list # freebsd-update install HTH, Greg. [1] https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html "23.2.3. Performing Major and Minor Version Upgrades" PS: Sorry for the slow response - I'm just back from summer holidays. PPS: In reality I like to maintain a separate list of installed top-level packages for $pkg_list so that the dependencies are installed automatically and marked as automatic when I look at: # pkg query "%a %n"