Admin... by accident!

You may have chosen to be an admin. I didn't!

  • Home
  • FreeBSD
  • GNU/Linux
  • Security
  • Network
  • Virtualization
  • Politics
  • Github
  • Donate
  • Me

How to update FreeBSD with freebsd-update

April 25, 2017 by Albert Valbuena

Anytime you set a clean fresh FreeBSD install or just any other operating system you must update it. This should be the first thing. If you are a bit security aware (read paranoid) you can first set up the firewall rules and then update the system to the latest release where you have all the security patches and all the new features. This is valid for every single OS on the planet.

On FreeBSD the update process has two steps, both driven by the freebsd-update tool. The first looks for the changes to be applied, downloads them and prints them out on the screen for your inspection and asks for your approval. The second just installs them. If you see anything stating the word kernel, you will have to reboot after the installation or the changes won’t be effective until it does.

freebsd-update fetch

This is a screenshot from a system which needed an update. And you can also see there were a few kernel patches.


After the tool has fetched and downloaded all the necessary files to arrange the update it is time to install them. Type as root:

freebsd-update install

If you are not root:

sudo freebsd-update install

After the freebsd-update install command a reboot is mandatory.

To reinitialize the box just type reboot if you are root, or type sudo reboot if you are using another user account:

After the machine has rebooted you will be able to login again and the last updates will be in place. You can check this with the uname program. Just type “uname -a” before updating and afterwards. You will see the different version. Obviously if there is nothing to update the freebsd-update utility will tell you your system is up to date.

If you find the articles in Adminbyaccident.com useful to you, please consider making a donation.

Filed Under: How To's

Recent Posts

  • How to patch OpenSSH in FreeBSD 12.2
  • The CentOS party is over, isn’t it?
  • Donation Time 2020
  • How to configure TLS 1.2 on UNIX or GNU/Linux
  • How to install the Clamav antivirus on CentOS 8
  • 100 articles mark at Adminbyaccident.com
  • How to analyze suspicious email
  • How to work with Nessus scan results
  • How to install Ansible on FreeBSD
  • How to secure the ELK stack on CentOS 8
  • How to mirror disks on FreeBSD’s ZFS
  • Nmap cheatsheet
  • Nessus vulnerability scanner
  • How to install the ELK stack on CentOS 8
  • How to install OSSEC agents on Windows
  • Exploiting CVE-2019-0708 Remote Desktop Protocol on Windows
  • Microsoft’s Patch Tuesday – April 2020
  • Web credentials stealing
  • ARP spoofing attacks
  • How to install OSSEC server on Ubuntu

Archives

  • January 2021
  • December 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • February 2020
  • January 2020
  • December 2019
  • November 2019
  • October 2019
  • August 2019
  • July 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
  • February 2019
  • January 2019
  • September 2018
  • June 2018
  • May 2018
  • April 2018
  • February 2018
  • January 2018
  • November 2017
  • April 2017

Copyright © 2021 · Magazine Pro Theme on Genesis Framework · WordPress · Log in