Upgrading 10.x to 10.3

Ports Collection

Operating System

  1. cd /usr/src/sys/arch/conf
  2. diff GENERIC $KERNCONF > $KERNCONF.diff
  3. cd /usr/src
  4. svn sw svn://svn.db.tokushima-u.ac.jp/base/releng/10.3/
  5. Configure /usr/src/sys/arch/conf/$KERNCONF
  6. rm -rf /usr/obj
  7. make buildworld
  8. make buildkernel
  9. make installkernel
  10. reboot
  11. mergemaster -p
  12. make installworld
  13. mergemaster -iFU
  14. yes | make delete-old
  15. reboot

Mail System

  1. cd /etc/mail
  2. make install
  3. newaliases

Ports Collection / User Application

  1. cd /usr/local/lib/compat/pkg
  2. (remove old libraries)
  3. pkg update
  4. portupgrade -afc
  5. Recompile user applications

Operating System

  1. cd /usr/src
  2. yes | make delete-old-libs

Miscellaneous

EDB/Java RMI

  1. cd /usr/local/etc/rc.d/
  2. cp /home/private/edbjavarmi/rc.d/edbjavarmi .

ZFS

  1. (Not need following operations in 10.2→10.3)
  2. zpool upgrade -a
  3. (upgrade boot partitions: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 device)

Upgrading 10.3 to 11.0

Ports Collection

SSH (If needed)

  1. /etc/ssh/ssh_config: PubkeyAcceptedKeyTypes +ssh-dss
  2. /etc/ssh/sshd_config: PubkeyAcceptedKeyTypes +ssh-dss

Operating System

  1. cd /usr/src/sys/arch/conf
  2. diff GENERIC $KERNCONF > $KERNCONF.diff
  3. cd /usr/src
  4. svn sw svn://svn.db.tokushima-u.ac.jp/base/releng/11.0/
  5. Configure /usr/src/sys/arch/conf/$KERNCONF
  6. rm -rf /usr/obj
  7. make buildworld
  8. make buildkernel
  9. make installkernel
  10. reboot
  11. mergemaster -p
  12. make installworld
  13. mergemaster -iFU
  14. yes | make delete-old
  15. reboot

Mail System

  1. cd /etc/mail
  2. make install
  3. newaliases

Ports Collection / User Application

  1. pkg-static install -f pkg
  2. cd /usr/local/lib/compat/pkg
  3. (remove old libraries)
  4. pkg update
  5. portupgrade -afc
  6. Recompile user applications

Operating System

  1. cd /usr/src
  2. yes | make delete-old-libs

Miscellaneous

EDB/Java RMI

  1. cd /usr/local/etc/rc.d/
  2. cp /home/private/edbjavarmi/rc.d/edbjavarmi .

ZFS

  1. zpool upgrade -a
  2. (upgrade boot partitions: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 device)