Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2013, 09:12 PM
LGE LGE is offline
Junior Member
 
Join Date: Nov 2011
Posts: 22
Thanks: 2
Thanked 3 Times in 3 Posts
Default Upgrade from PC-BSD 9.1-RELEASE to PC-BSD 9.2-RELEASE without reinstalling.
If you are like me and

1) are happily running the original PC-BSD 9.1-RELEASE with pkgng support, and
2) don't feel like doing a fresh install because you have too much stuff
around, including jails and what not, but
3) feel like you should be running 9.2-RELEASE, getting security
updates, and new features

here is what I did. There is no guarantee this will work for you, but here it goes:

0) Backup everything, of course, and just in case take a snapshot of tank0 so you can revert there if you screw things badly.

# zfs snapshot -r tank0@backup-9.1-RELEASE

1) Boot into the console, to minimize the noise in the system. In /etc/rc.conf, set GDM_ENABLE=NO. Reboot.

2) update the base OS to 9.2-RELEASE with freebsd-update:

# freebsd-update -r 9.2-RELEASE upgrade

You may need to reboot and run freebsd-update install, follow the instructions on screen.

You will boot into FreeBSD 9.2-RELEASE, with the silly Nakatomi Socrates thing in the loader menu. That doesn't bother me too much.

3) Set pkgng to use the 9.2-RELEASE repository. In /usr/local/etc/pkg.conf:

packagesite: http://pkg.cdn.pcbsd.org/9.2-RELEASE/amd64

4) Update the pkg index and upgrade all packages. I had been updating packages regularly, so this didn't take a long time.

# pkg update
# pkg upgrade

Reboot.

5) OK, now you are only missing the PC-BSD goodies ... you only need to check out the code and install them. You may need to install git to check out the PC-BSD sources:

# pkg install git

Check out the code:

# git clone git://github.com/pcbsd/pcbsd.git

And compile it:

# cd pcbsd/src-sh

# make && make install

# cd ../../pcbsd/src-qt4

# qmake-qt4

# make && make install

I had to rename a file in pcbsd/src-qt4/life-preserver/lp-gui/ from life-preserver.pro to lp-gui.pro. Otherwise everything compiled clean.

6) Re-enable GDM in /etc/rc.conf set GDM_ENABLE=YES

7) Reboot into PC-BSD 9.2!

I still get the FreeBSD 9.2-RELEASE loader menu, but other than that, the new AppCafé is working fine, my jails in Warden still work OK, and all my data and desktop configuration survived.

I know this is not exactly like a PC-BSD 9.2 fresh install, but having all my stuff in place is a greater benefit to me ... If anyone spots something that could have been done better, please correct it.

Enjoy!
Reply With Quote
The Following User Says Thank You to LGE For This Useful Post:
helix (11-17-2013)
  #2  
Old 11-17-2013, 08:09 PM
helix helix is offline
Senior Member
 
Join Date: Feb 2012
Location: Slovenia
Posts: 140
Thanks: 54
Thanked 13 Times in 12 Posts
Default
Could you please elaborate on how to merge config files? I felt curageous to start this process on my spare machine and got stuck in process where system asked/presented diff files. What was I suppose to do? I have never tried this process before. Tnx for this great walktrough
Reply With Quote
  #3  
Old 11-20-2013, 08:56 PM
LGE LGE is offline
Junior Member
 
Join Date: Nov 2011
Posts: 22
Thanks: 2
Thanked 3 Times in 3 Posts
Default
Hi Helix

I also got into the merging mess. If you know how diff works and how to move around in vi a bit, getting rid of the conflicts is not difficult, but still painful. The main conflict was the FreeBSD version in the header of the files; you should keep the line that says 9.2.0, and remove the one from 9.1

If you're not comfortable with vi and diff syntax, this might be just too much pain, but also a chance to learn something.

I'm sorry I didn't document all the conflicts I had to merge with the update; my brain must have erased the memory of deleting all those silly version headers ...
Reply With Quote
The Following User Says Thank You to LGE For This Useful Post:
helix (01-31-2014)
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


All times are GMT. The time now is 07:33 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.