documentation:netbsd:upgrade
This is an old revision of the document!
Table of Contents
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 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 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)
