Add mirror in France at NFrance Conseil, Web hosting & ISP company operated by David...
[ikiwiki.git] / presentations / upgrade-freebsd.shtml
1 <!--#set var="title" value="DragonFly - Upgrading From FreeBSD 4" -->
2 <!--#include virtual="/includes/header.shtml" -->
3
4 <!-- $DragonFly: site/data/docs/upgrade-freebsd.shtml,v 1.1 2006/11/17 03:41:05 justin Exp $ -->
5
6
7 <P>
8 If you have a system running FreeBSD 4 (4.9 was the most recent release 
9 at the time this document was written), it is possible to switch to DragonFly 
10 "in-place" through downloading the DragonFly source and compiling it.
11 <P>
12
13 <OL>
14 <LI> First, make sure you are running FreeBSD 4.9-RELEASE or later.  
15 <code>uname -a</code> will tell you what version you are running.  
16 Note: FreeBSD 5 versions will <b>not work</b> for this upgrade.
17 <P>
18 <LI> Remove any FreeBSD source files from your machine.  
19 <I>All commands after this point should be run as root.</I>
20 <P>
21 <code>
22 rm -rf /usr/src<BR>
23 rm -rf /usr/obj<BR>
24 mkdir /usr/obj
25 </code>
26 <P>
27 <LI> If you do not have cvsup installed, 
28 these commands will download and install it for you:
29 <P>
30 <code>
31 pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-4-stable/Latest/cvsup-without-gui.tgz<BR>
32 rehash
33 </code>
34 <P>
35 <LI> Fetch a configuration file for cvsup and run cvsup using that file:
36 <P>
37 <code>
38 fetch http://www.dragonflybsd.org/community/dragonfly-cvs-supfile
39 </code>
40 <P>
41 Comment out the lines that say:
42 <P>
43 <code>
44 *default prefix=/home/dcvs<br>
45 *default release=cvs
46 </code>
47 <P>
48 and uncomment the lines that say: 
49 <P>
50 <code>
51  #*default prefix=/usr<br>
52  #*default release=cvs tag=.
53 </code>
54 <P>
55 Run cvsup using that config file.
56 <P>
57 <code>
58 cvsup dragonfly-src-supfile
59 </code>
60 <P>
61 You now will have the DragonFly source files in /usr/src.
62 <P>
63 <I>Note: the newly created file <code>/usr/src/UPDATING</code> will have the 
64 most up-to-date instructions on updating your system; double-check it 
65 before proceeding.</I>
66 <P>
67 <LI> You will now want to compile the userland and the kernel. 
68 <P>
69 <code>
70 cd /usr/src<BR>
71 make buildworld<BR>
72 make buildkernel
73 </code>
74 <P>
75 <LI> Delete existing FreeBSD include files; having them available may cause 
76 conflicts later on.
77 <P>
78 <code>
79 rm -rf /usr/include<BR>
80 mkdir /usr/include
81 </code>
82 <P>
83 <LI> Now, install the new DragonFly userland and kernel:
84 <P>
85 <code>
86 make installworld<BR>
87 make installkernel
88 </code>
89 <P>
90 <LI> You will want to make sure your /etc directory is cleaned up:
91 <P>
92 <code>
93 make upgrade
94 </code>
95 <P>
96 <LI> You now can sync your disk and reboot your machine.
97 <P>
98 <code>
99 sync<BR>
100 reboot
101 </code>
102 <P>
103 <LI> Congratulations!  Your computer will boot into DragonFly!
104 Make sure to check <a href="/main/forums.cgi">the forums</a> 
105 semi-regularly.  If you have trouble booting, the bugs forum is 
106 the first place to go.
107 <P>
108 You can repeat the cvsup/build/install steps on 
109 this page to keep your system up to date with the changing 
110 DragonFly codebase.  (You will not have to repeat the 
111 <code>make upgrade_etc</code> step.)  
112
113 </OL>
114
115
116 <!--#include virtual="/includes/footer.shtml" -->