July 26, 2017

How to Update FreeBSD

FreeBSD Logo

Keeping you system up-to-date is one of the main things to avoid security holes. With the freebsd-update command you can easily check for new security patches and may download and install them on your FreeBSD. It is also a good idea to run this command from cron.

Root access is required to edit the following files and to execute commands. Log in as root (su) or simply prepend sudo to all commands that require root privileges.

Update your FreeBSD manually

With the following commands you will fetch and install the latest security patches:

freebsd-update fetch
freebsd-update install

Please note that your system needs a reboot once a kernel patch has been applied.

Update your FreeBSD from cron

Place the following line into your /etc/crontab to run freebsd-update as a daily task:

@daily    root    freebsd-update cron

Speak Your Mind