Skip to content

Instantly share code, notes, and snippets.

@antenore
Last active August 25, 2016 19:31
Show Gist options
  • Save antenore/6ccb27c05a747a3b534ed7a239b0b8c6 to your computer and use it in GitHub Desktop.
Save antenore/6ccb27c05a747a3b534ed7a239b0b8c6 to your computer and use it in GitHub Desktop.
FreeBSD: Upgrade FreeBSD 11.0-BETA4 to FreeBSD 11.0-RC2

Disclaimer

This is not a replacement of https://www.freebsd.org/doc/handbook/updating-upgrading.html , neither a script. So do not blindly execute it, without trying to understand what happens behind.

I advice to execute this in a standard, posix compliant and clean shell, /bin/sh should be the best choice.

To have a good error handlingh execute set -xe

beadm create 110beta4To110rc2
beadm activate 110beta4To110rc2
reboot
beadm rename default 11beta4
mv /usr/src /usr/src.110beta4
svnlite co https://svn0.us-west.freebsd.org/base/stable/11 /usr/src
cd /usr/src
# READ UPDATING !!!
make -j `sysctl -n hw.ncpu` buildworld
make -j `sysctl -n hw.ncpu` buildkernel
make installkernel
reboot
cd /usr/src
mergemaster -p
make installworld
mergemaster -iUF
yes | make delete-old
yes | make delete-old-libs
chflags -R noschg /usr/obj/* && rm -rf /usr/obj/*
reboot
pkg-static install -f pkg

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment