How To Upgrade FreeBSD 7.0 to 7.1 Stable Release

来源:互联网 发布:阿里云备案号 编辑:程序博客网 时间:2024/05/17 03:05

How To Upgrade FreeBSD 7.0 to 7.1 Stable Release

by Vivek Gite

Q. How do I upgrade FreeBSD 7.0 server to latest 7.1 server with stock GENERIC kernel installed?

A. The freebsd-updateutility supports binary upgrades of i386 and amd64 systems runningearlier FreeBSD releases. Systems running 7.0-RELEASE, 7.1-BETA,7.1-BETA2, 7.1-RC1, or 7.1-RC2 can be only upgrade as follows.

Login as root user and type the command:

WARNING!These examples may crash your server if not executed with care.Upgrading system is a complex procedure. Backup your data, config fileand make sql dumps before you use the following instructions. If youare using custom kernel configuration, you need to perform source codeupdate using cvsup method.

# freebsd-update upgrade -r 7.1-RELEASE
During this process, FreeBSD Update may ask the user to help by mergingsome configuration files or by confirming that the automaticallyperformed merging was done correctly.
# freebsd-update install
The system must be rebooted with the newly installed kernel before continuing.
# reboot
After rebooting, freebsd-update needs to be run again to install thenew userland components, and the system needs to be rebooted again:
# freebsd-update install
Users of Intel network interfaces which are changing their name from"em" to "igb" should make necessary changes to configuration filesBEFORE running freebsd-update, since otherwise the network interfacewill not be configured appropriately after rebooting for the firsttime, especially firewall and other networking options in /etc/rc.conffile.
# reboot

Users of earlier FreeBSD releases (FreeBSD 6.x) can also use freebsd-update to upgrade to FreeBSD 7.1,but will be prompted to rebuild all third-party applications (e.g.,anything installed from the ports tree) after the second invocation of"freebsd-update install", in order to handle differences in the systemlibraries between FreeBSD 6.x and FreeBSD 7.x.

Upgrade all packages

You also need to update all packages, type:
# portsnap fetch update
# pkg_version -vIL=
# portupgrade -a

 

From: http://www.cyberciti.biz/faq/freebsd-update-70-to-71/

原创粉丝点击