# NOTE: this is NOT a bash script. For one thing, sh is used for BSD # and for another, there are several places where you have to provide input # get latest release info freebsd-update fetch freebsd-update install # download upgrade files. Change the 10.3-RELEASE to # whatever release you are upgrading to. freebsd-update upgrade -r 10.3-RELEASE # do the initial upgrade freebsd-update install # reboot shutdown -r now # update everything else freebsd-update install shutdown -r now # upgrade ports structure portsnap fetch portsnap extract portsnap fetch update # upgrade pkg (binary) packages pkg clean pkg update pkg upgrade