update for rename of docs/user/DebugKernelCrashDumps.mdwn to docs/user/list/DebugKern...
[ikiwiki.git] / docs / handbook / handbook-updating-makeworld.mdwn
1 \r
2 \r
3 ## Updating the System \r
4 \r
5 Updating the system is a relatively simple process. As root, in `/usr/src`:\r
6 \r
7     \r
8     % make buildworld\r
9     % make buildkernel KERNCONF=GENERIC\r
10     % make installkernel KERNCONF=GENERIC\r
11     % make installworld\r
12     % make upgrade\r
13     (reboot)\r
14 \r
15 \r
16 An explanation of each step follows.\r
17 \r
18
19 * `make buildworld` : This command rebuilds all userland programs. This is the most time-consuming step.\r
20
21 * `make buildkernel KERNCONF=GENERIC` : This builds the kernel using the config file specified by KERNCONF. If you've created a different kernel configuration file as detailed in [Chapter 9](kernelconfig.html), use that instead of GENERIC. If KERNCONF isn't specified, the GENERIC configuration file (installed by default) is used.\r
22
23 * `make installkernel KERNCONF=GENERIC` : This installs the kernel using the config file specified by KERNCONF. The value of KERNCONF must match what was specified in the make buildkernel command, so that files that match this configuration can be installed correctly. As with make buildkernel, KERNCONF will be set to GENERIC if not otherwise specified.\r
24
25 * `make installworld` : This copies all the files built in the buildworld step (i.e. everything that is not the kernel) to the proper places in the filesystem.\r
26
27 * `make upgrade` : This cleans out any files made unnecessary by this upgrade.\r
28
29 * (reboot) : Reboot the computer to load the new kernel and use the new files installed as part of this process.\r
30 \r
31 If your computer fails to reboot, check the [Section 9.6](kernelconfig-trouble.html) section of the handbook.\r
32 \r
33  **NOTE** : You should never run `make upgrade` before having installed the new kernel and world because your system might (in the worst case) be rendered useless if you do so.  This can happen because `make upgrade` might remove something that the old system still needs for functioning correctly!\r
34 \r
35 A more in-depth explanation of the build process is described in [build(7)](http://leaf.dragonflybsd.org/cgi/web-man?command#build&section7)\r
36 \r
37 CategoryHandbook\r
38 CategoryHandbook-updating\r