e708 freebsd-update upgrade best practices - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old December 7th, 2008, 18:31
alief alief is offline
Junior Member
 
Join Date: Dec 2008
Location: Indonesia
Posts: 3
Thanks: 10
Thanked 0 Times in 0 Posts
Question freebsd-update upgrade best practices

Hi all,

I want to ask, what's the best practices for upgrading major version of FreeBSD with freebsd-update ? (e.g. 6.x -> 7.0).

And what method do you prefer, freebsd-update, make buildworld, or upgrading with installation CD ?
Reply With Quote
  #2  
Old December 7th, 2008, 18:51
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

I would run the update. Afterwards I would install the compat layer for the old system (e.g. misc/compat6x) and run:

# cd /usr/src
# make delete-old
# make delete-old-libs

Then I'd run pkg_libchk from the sysutils/bsdadminscripts port, which would create a list of ports that need rebuilding.

# pkg_libchk -qo > rebuild

Afterwards I'd rebuild the detected packages with my favourite update tool. E.g.:

# xargs -o < rebuild portmaster -D

After successfully rebuilding all these packages (which is still less than rebuilding all packages), you can safely deinstall the compat package.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
The Following 4 Users Say Thank You to kamikaze For This Useful Post:
alief (December 8th, 2008), anomie (December 8th, 2008), cajunman4life (December 7th, 2008), sverreh (December 8th, 2008)
  #3  
Old December 7th, 2008, 19:41
cajunman4life cajunman4life is offline
Member
 
Join Date: Nov 2008
Location: Arizona, USA
Posts: 119
Thanks: 3
Thanked 18 Times in 11 Posts
Default

Looks like a good method to follow rather than rebuilding all ports. I'll try it on the next major upgrade I have.
Reply With Quote
  #4  
Old December 8th, 2008, 10:38
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

I coded the script pkg_libchk for the upgrade from 6.x to 7.x and it is much more mature, now, than it was back then. It even has SMP support and is working very reliable. Only jdks and OpenOffice yield some false positives, because they are linked to libraries that don't exist (odbc), or which they have to locate themselves (libjawt.so).

Well, I hope it will work for you guys as well as it does for me.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
  #5  
Old December 9th, 2008, 02:42
jleal2003 jleal2003 is offline
Junior Member
 
Join Date: Dec 2008
Location: Mexico
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I would strongly prefer , backing up all data and config files , and then make a FRESH FBSD 7 install!!!!

i DO NOT like updating Fbsd from one version to an other!
__________________
ChuyBSD
Reply With Quote
  #6  
Old December 9th, 2008, 02:42
jleal2003 jleal2003 is offline
Junior Member
 
Join Date: Dec 2008
Location: Mexico
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
Default

i think also you would spend less time doing that way!
__________________
ChuyBSD
Reply With Quote
  #7  
Old December 9th, 2008, 12:09
kamikaze's Avatar
kamikaze kamikaze is offline
Member
 
Join Date: Nov 2008
Location: /earth/europe/germany
Posts: 366
Thanks: 6
Thanked 66 Times in 45 Posts
Default

I doubt it. For me even a major update is not such a large process. The most time consuming part is the updating of packages and that runs automatically, most of the time.
__________________
sysutils/bsdadminscripts: binary package maintenance, library integrity checking, ...
sysutils/automounter: amd(8) based automounting without HAL
contact: kamikaze@bsdforen.de

Disclaimer: My posts represent my perception. Errors and incompleteness are to be expected, I deny any responsibility to know everything.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System down after freebsd-update noobster Installing & Upgrading 9 December 2nd, 2008 14:43
upgrade a custom kernel ? smooth Installing & Upgrading 10 December 2nd, 2008 09:20
FreeBSD-update fails downloading upgrade information Steije Installing & Upgrading 3 November 25th, 2008 20:12
ssh segmentation fault after upgrade to 7.0-RELEASE-p5 yannvote Web & Network Services 5 November 20th, 2008 19:00
FreeBSD-EN-07:05.freebsd-update admin News & Announcements 0 June 20th, 2008 21:38


All times are GMT +1. The time now is 14:15.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0