User Tools

Site Tools


documentation:netbsd:upgrade

NetBSD upgrade procedure (aka NUP)

Simplified procedure

  1. Get binary sets
  2. Unpack Kernel
  3. Reboot
  4. Binary sets
  5. Postinstall check
  6. Postinstall fix
  7. Reboot
  8. 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 NetBSD Mirror. I use the DK mirror.
  • 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..
documentation/netbsd/upgrade.txt · Last modified: 2015/01/23 10:28 by sps

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki