update freebsd
来源:https://blog.vulnifo.com/2021/09/17/how-to-setup-nfs-and-samba-on-freebsd-13/
First of all we need to do a few things to prepare our system. Fully update the system and the ports tree.
Use su to become root since this entire process will require root privileges.
vulnifo@freebsd-test:~ % su
Password:
root@freebsd-test:/home/vulnifo #
Use these commands to update FreeBSD.
# freebsd-update fetch
...
# freebsd-update install
...
If any kernel modules were updated, a reboot will be required. Do this with the following commands.
# freebsd-version -k
13.0-RELEASE-p4
# uname -r
13.0-RELEASE
Since the outputs of the two commands don’t match, we need to reboot.
# shutdown -r now
After the machine reboots we need to install the ports tree. Use the following commands
# portsnap fetch
...
# portsnap extract
Please note: If this is the first time you have run this, it is going to take a while to complete!
With an updated system and ports tree, we can start installing software.

浙公网安备 33010602011771号