====== NetBSD upgrade procedure (aka NUP) ====== ===== Simplified procedure ===== - Get binary sets - Unpack Kernel - Reboot - Binary sets - Postinstall check - Postinstall fix - Reboot - Upgrade packages as needed. ===== Extended procedure ===== I take it that you have /path/to/sets set to /INSTALL * If not set already, set -o braceexpand * Fetch binary sets from a [[http://www.netbsd.org/mirrors/|NetBSD Mirror]]. I use the DK mirror. * ''echo "mget *gz" | ftp -Va ftp://ftp.dk.netbsd.org/pub/NetBSD/NetBSD-5.1.2/i386/binary/sets'' * Unpack modules * ''progress -z -f /INSTALL/modules.tgz pax -rpe'' * Unpack Kernel * ''progress -z -f /INSTALL/kern-GENERIC.tgz pax -rpe'' * Reboot server to let new kernel take effect, remember to set braceexpand if you haven't stuffed it in a login script already. * Unpack base, comp, games, man, misc, tests and text binary sets. * ''for file in INSTALL/{b,c,g,ma,mi,t,x}*tgz ; do progress -zf $file pax -rpe ; done'' * Check etc.tgz via postinstall * ''postinstall -s /INSTALL/etc.tgz check'' * And then fix via postinstall * ''postinstall -s /INSTALL/etc.tgz fix'' * reboot * ... Enjoy new and upgraded server..