SunQuest
           BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old March 4th, 2004, 02:15 AM
2ply 2ply is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 2ply User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
updating freeBSD

I want to go from FreeBSD 4.8 to 4.9... Im pretty new and would like to know the steps on how to do this.

Reply With Quote
  #2  
Old March 4th, 2004, 06:45 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
The handbook is the best source of info for upgrading:

http://www.freebsd.org/doc/en_US.IS...tting-edge.html

Reply With Quote
  #3  
Old March 4th, 2004, 12:45 PM
M.Hirsch M.Hirsch is offline
Contributing User
Dev Shed God 1st Plane (5500 - 5999 posts)
 
Join Date: Oct 2000
Location: Back in the real world.
Posts: 5,969 M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level)M.Hirsch User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Month 1 Day 22 h 39 m 55 sec
Reputation Power: 184
When I started with FreeBSD, I found their versioning scheme a little confusing (although after understanding it, I can't think of a better way to solve it).
So another hint: You want RELENG_4_9. And you don't want to put that into your ports-sup file, ports are independent of the release.

hth,
M.
__________________
--
Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more.

Reply With Quote
  #4  
Old March 4th, 2004, 02:20 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,432 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 22 h 25 m 22 sec
Reputation Power: 784
This is what I did.
1. Install cvsup. Best to do this with pkg_add or /stand/sysinstall, rather than ports, because the ports will first compile a modula4 compiler and it'll take a while. Post here if you're having trouble installing cvsup.

2. Make a cvsup config file. You can find sample cvsup config files installed in /usr/share/examples/cvsup. I keep all my cvsup config files in /usr/local/etc/cvsup/. These are the config files I use to update source and ports.
Code:
----------------------------------------------------
/usr/local/etc/cvsup/cvsupsrc (to update source)
----------------------------------------------------
*default  host=cvsup11.FreeBSD.org
*default  base=/usr
*default  prefix=/usr
*default  release=cvs
*default  tag=RELENG_4    <--- you can use RELENG_4_9 for 4.9-RELEASE. RELENG_4 is latest stable release of 4.
*default  delete use-rel-suffix

src-all

----------------------------------------------------
/usr/local/etc/cvsup/cvsupports (to update ports)
----------------------------------------------------
*default host=cvsup11.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

ports-all


3. Run cvsup to update your source.
cvsup -g -L 2 /usr/local/etc/cvsup/cvsupsrc

4. Edit /etc/make.conf (copy from /etc/defaults/make.conf if needed) to make it build to your requirements.

5. You can drop the machine into single-user mode at this point, though I've never had problems compiling in multiuser mode. Navigate to /usr/src

6. make buildworld
This will take a while to finish

7. make buildkernel
Optionally, you can specify a custom kernel name here with: make buildkernel KERNCONF=kernelname
if not specified, it assumes KERNCONF=GENERIC

8. make installkernel
This installs the new kernel to the system

9. reboot
Make sure your system comes up with the new kernel.

10. make installworld
This installs the new userland tools

11. mergemaster
This shows you all the differences in the config files. You can use it to fix all the config files. When going from 4.8-4.9 there are going to be a lot of changes. mergemaster will also run MAKEDEV for you automatically, if it needs to.

12. reboot
The system will now come back up with the new config files.
__________________
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne

Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month

Last edited by Scorpions4ever : March 4th, 2004 at 02:46 PM.

Reply With Quote
  #5  
Old March 6th, 2004, 07:24 PM
2ply 2ply is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 2ply User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for your help ! Im going to give it a shot. Let you know how it turns out.



Quote:
Originally Posted by Scorpions4ever
This is what I did.
1. Install cvsup. Best to do this with pkg_add or /stand/sysinstall, rather than ports, because the ports will first compile a modula4 compiler and it'll take a while. Post here if you're having trouble installing cvsup.

2. Make a cvsup config file. You can find sample cvsup config files installed in /usr/share/examples/cvsup. I keep all my cvsup config files in /usr/local/etc/cvsup/. These are the config files I use to update source and ports.
Code:
----------------------------------------------------
/usr/local/etc/cvsup/cvsupsrc (to update source)
----------------------------------------------------
*default  host=cvsup11.FreeBSD.org
*default  base=/usr
*default  prefix=/usr
*default  release=cvs
*default  tag=RELENG_4    <--- you can use RELENG_4_9 for 4.9-RELEASE. RELENG_4 is latest stable release of 4.
*default  delete use-rel-suffix

src-all

----------------------------------------------------
/usr/local/etc/cvsup/cvsupports (to update ports)
----------------------------------------------------
*default host=cvsup11.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=.
*default delete use-rel-suffix

ports-all


3. Run cvsup to update your source.
cvsup -g -L 2 /usr/local/etc/cvsup/cvsupsrc

4. Edit /etc/make.conf (copy from /etc/defaults/make.conf if needed) to make it build to your requirements.

5. You can drop the machine into single-user mode at this point, though I've never had problems compiling in multiuser mode. Navigate to /usr/src

6. make buildworld
This will take a while to finish

7. make buildkernel
Optionally, you can specify a custom kernel name here with: make buildkernel KERNCONF=kernelname
if not specified, it assumes KERNCONF=GENERIC

8. make installkernel
This installs the new kernel to the system

9. reboot
Make sure your system comes up with the new kernel.

10. make installworld
This installs the new userland tools

11. mergemaster
This shows you all the differences in the config files. You can use it to fix all the config files. When going from 4.8-4.9 there are going to be a lot of changes. mergemaster will also run MAKEDEV for you automatically, if it needs to.

12. reboot
The system will now come back up with the new config files.

Reply With Quote
  #6  
Old March 7th, 2004, 11:35 PM
2ply 2ply is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 3 2ply User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Everything worked great ! Untill I got to the mergemaster step... I did that and then makedev did its thing, it asked me if I wanted to merge a bunch of the config files... which I said yes.... and then I rebooted it and now it locks up when loading exim :P... oh well... any suggestions ?

Reply With Quote
  #7  
Old March 7th, 2004, 11:54 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
The merge function in mergemaster is a recipe for disaster - I usually either allow mergemaster to completely overwrite a file or do nothing at all (leave it for later).

When you say 'locks up' - have you tried pressing 'ctrl-c'?

This usually skips the current local rc script that's being loaded - you can then try and work out what the problem is in a shell.

Reply With Quote
  #8  
Old March 8th, 2004, 01:47 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,432 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 22 h 25 m 22 sec
Reputation Power: 784
Sounds like you might have overwritten some key files here like /etc/hosts or /etc/master.passwd etc. In general, I let mergemaster overwrite everything except for:
/etc/passwd
/etc/hosts
/etc/groups
/etc/hosts
/etc/master.passwd

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > updating freeBSD


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway