MT6 FreeBSD Upgrade

From The Network People, Inc. - Wiki
Jump to navigation Jump to search
Mail Toaster 6
Start Installation
FreeBSD Upgrade
DNS Upgrade
MySQL Upgrade
ClamAV Upgrade
AVG Upgrade
SpamAssassin Upgrade
Rspamd Upgrade
dspam Upgrade
Vpopmail Upgrade
Haraka Upgrade
Haproxy Upgrade
webmail Upgrade
Monitor Upgrade
testing

FreeBSD Security Updates

Apply security updates as they are released.

freebsd-update fetch install

You can have cron automatically fetch the updates as they become available with this cron entry:

30 3 * * * /usr/sbin/freebsd-update cron

Then you need to run only the install target manually:

freebsd-update install

Upgrading FreeBSD

Minor Version Upgrades

Install FreeBSD minor version upgrades (ex: 10.1 -> 10.2) about a month after the've been released. Complete instructions are here in the FreeBSD handbook and the process usually boils down to these few commands:

freebsd-update -r 10.2-RELEASE upgrade
freebsd-update install
reboot
freebsd-update install
pkg upgrade -f
freebsd-update install

Upgrading jails

The Dec 07, 2014 version of Matt's jailmanage script adds an update target for updating FreeBSD within every jail:

jailmanage update

If the FreeBSD host is newer (ex: 10.2) than the version in the jail (10.1), the script will upgrade the jail to the same version as the host. If the host and jail are running the same version, then it just runs a 'freebsd-update fetch install', which will install any security patches.