To update a FreeBSD system to a newer release using the cvsup
utility, you will need to do the following:
cvsup
utility on your FreeBSD system. You can install cvsup
using the pkg
package manager:# pkg install cvsup-without-gui
cvsup
. The configuration file specifies the location of the source code repository and the files you want to update. To create the configuration file, you can use the csup
utility to generate a template configuration file. Run the following command to create the template configuration file:# csup -g -h cvsup.FreeBSD.org /usr/share/examples/cvsup/standard-supfile
This will create a file named standard-supfile
in the /usr/share/examples/cvsup
directory. You can then edit this file to specify the version of FreeBSD you want to update to, and any other options you want to use.
cvsup
to update the source code using the configuration file you created in step 2. The syntax for the cvsup
command is:cvsup -g -L 2 /path/to/configuration/file
Replace /path/to/configuration/file
with the path to the configuration file you created in step 2.
cvsup
has finished updating the source code, you will need to compile and install the updated source code using the make
utility. First, switch to the source code directory:# cd /usr/src
Then, run the following commands to compile and install the updated source code:
# make buildworld # make buildkernel KERNCONF=YOUR_KERNEL_CONFIGURATION # make installkernel KERNCONF=YOUR_KERNEL_CONFIGURATION # reboot # make installworld # mergemaster -p # reboot