Update src tree

git clone https://git.freebsd.org/src.git /usr/src
git checkout releng/x.x

查看可用Branch

git branch -r

更新

git pull
git status

記錄一下更新所需時間

FreeBSD 13.2-RELEASE releng/13.2-525ecfdad

Welcome to FreeBSD!

```                        `       
  ` `.....---.......--.```   -/    -------
  +o   .--`         /y:`      +.   OS: FreeBSD 13.2-RELEASE amd64
   yo`:.            :o      `+-    Uptime: 1 day, 29 mins
    y/               -/`   -o/     Packages: 187 (pkg)
   .-                  ::/sy+:.    Terminal: /dev/pts/0
   /                     `--  /    CPU: Intel Xeon E5-2690 v4 (28) @ 2.594GHz [32.0°C]
  `:                          :`   GPU: Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]
  `:                          :`   Memory: 35.44GiB / 63.88GiB
   /                          /    CPU Usage: 99%
   .-                        -.    Disk (/): 12G / 880G (1%)
    --                      -.     Disk (/tank/share): 13T / 21T (63%)
     `:`                  `:`      
       .--             `--.        
          .---.....----.        

Build World

make -j28 buildworld
--- buildworld_epilogue ---
--------------------------------------------------------------
>>> World build completed on Sat Dec 23 13:20:12 EST 2023
>>> World built in 1405 seconds, ncpu: 28, make -j28
--------------------------------------------------------------

Build Kernel

KERNCONF=GENERIC Z440 in make.conf

make -j28 buildkernel
--------------------------------------------------------------
>>> Kernel build for GENERIC completed on Thu Jun 22 20:19:57 EDT 2023
--------------------------------------------------------------
>>> Kernel(s)  Z440 GENERIC built in 260 seconds, ncpu: 28, make -j28
--------------------------------------------------------------

Install

https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld

make installkernel KERNCONF=Z440  
reboot
etcupdate -p         
make installworld
etcupdate -B   
reboot

make delete-old  
make delete-old-libs