User Tools

Site Tools


documentation:netbsd:upgrade

This is an old revision of the document!


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 i in /INSTALL/{b,c,g,m,t,x}*.tgz ; do progress -z -f $i 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.1381989561.txt.gz · Last modified: 2013/11/20 15:36 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki