Step # 1: Upgrade ports
Type the following command, enter:# portupgrade -faP
Step # 2: Download updated freebsd-update-upgrade tool
Type the following command:# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz
# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz.asc
# gpg --verify freebsd-update-upgrade.tgz.asc freebsd-update-upgrade.tgz
# tar -xf freebsd-update-upgrade.tgz
Step # 3: Start upgrade procedure
Type the following command to install new kernel and reboot the system, enter:# sh freebsd-update.sh -f freebsd-update.conf -r 7.0-RELEASE upgrade
# sh freebsd-update.sh -f freebsd-update.conf install
# reboot
Step # 4: Install updated userland tools
Install the new userland components, after which all ports should be recompiled to link to new libraries:# sh freebsd-update.sh -f freebsd-update.conf install
# portupgrade -faP
Step # 5: Remove all old libraries
Finally, freebsd-update.sh needs to be run one last time to remove old system libraries, after which the system should be rebooted in order that the updated userland and ports will be running:# sh freebsd-update.sh -f freebsd-update.conf install
# reboot
Step # 6: Verify FreeBSD 7.0
Run following command to verify that everything is running smoothly, enter:# uname -a
# tail -f /var/log/messages
# tail -f /path/to/other/log/files
# egrep -i 'errorwarning' /path/to/log/files
# sockstat -4 -l
References:
- For more information, see the man pages - portupgrade, ports,sockstat and freebsd-update
- FreeBSD source code based update CVSup and rebuilding world
- FreeBSD major version upgrades
沒有留言:
張貼留言