Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2009 18:05:13 +0100
From:      Rolf G Nielsen <lazlar@lazlarlyricon.com>
To:        John <comp.john@googlemail.com>
Cc:        Pieter de Goeje <pieter@degoeje.nl>, freebsd-questions@freebsd.org
Subject:   Re: 7.2-STABLE to 8-R
Message-ID:  <4B0C1249.1090600@lazlarlyricon.com>
In-Reply-To: <20091124163718.GB91657@potato>
References:  <20091124154514.GA91657@potato>	<200911241725.42229.pieter@degoeje.nl> <20091124163718.GB91657@potato>

next in thread | previous in thread | raw e-mail | index | archive | help
John wrote:
> On Tue, Nov 24, 2009 at 05:25:42PM +0100, Pieter de Goeje wrote:
>> On Tuesday 24 November 2009 16:45:14 John wrote:
>>> Hello list
>>>
>>> I've looked high and low for a howto/link showing how to update to 8, to
>>> no avail. Is it just a case of the regular buildworld process or are
>>> there gotchas because we are crossing major version numbers.
>>>
>> You got it right. Just the regular upgrade procedure as documented in 
>> /usr/src/UPDATING.
>>
>> The gotcha is that you need to rebuild all ports. If you don't do that you can 
>> run in to trouble when you later build a port.
>>
>> I found that usually it is fastest to just take note of which ports you need, 
>> delete all existing ports, then after the upgrade reinstall the required 
>> ports.
> 
> Thanks, that's a relief! I looked at the url the other chap posted and
> it seems to be the same thing although he uses a slightly different
> syntax and I think he is talking about upgrading in a datacentre,
> remotely.
> 
> cheers

Just another note or two.

If you decide to recompile the ports using portupgrade, portmaster or a 
similar tool, rather than, as Pieter suggested, deleting them and 
re-installing, make sure your ports are up to date before upgrading the 
system. That way you are less likely to run into problems when 
recompiling them after upgrading.

After running mergemaster, do a make delete-old to remove any 7.2 
binaries remaining (libraries still in use won't be deleted). I usually 
do this while still in single user, but I believe it can be done in 
multi user as well.

After upgrading the ports, cd to /usr/src and do a make delete-old-libs. 
If you upgrade them using portupgrade, portmaster or a similar tool, do 
the delete-old-libs AFTER all ports are successfully upgraded. The 
reason for this is that the ports you have installed are still linked to 
the 7.2 libraries. If you decide to delete all ports, delete them before 
upgrading the system, then do the delete-old and delete-old-libs before 
installing any new ports.

I usually delete all ports and re-install the essential ones after 
upgrading, but I've tried the portupgrade approach too, and both have 
worked well for me. The latter approach is more time consuming, but 
ensures you have all your ports after the upgrade, while the former 
approach takes less time and may help get rid of ports you no longer need.

Good luck. :)

Rolf Nielsen



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