当前位置: 首页 >> 榆树网-系统 >> 文章正文

FreeBSD 6.2在线升级至8.0-RELEASE

由于Panabit不再开发基于Freebsd 6.2的软件包,所以必须升级操作系统,以前也没有试过跨大版本升级(6.x直接升级到8.x,以前完成过一次7.2升级到8.0),于是翻出7.0-RELEASE的Release-Notes,根据升级说明进行操作(根据如下操作,完成FreeBSD6.2-8.0的升级工作,注意原文是-r 7.0-RELEASE这里已经改成-r 8.0-RELEASE,由于机器没有安装任何Port包,所以portupgrade -faP也省略了):

http://www.freebsd.org/releases/7.0R/announce.html

FreeBSD Update

Starting with FreeBSD 6.3, the freebsd-update(8) utility supports binary upgrades of i386 and amd64 systems systems running earlier FreeBSD releases, release candidates, and betas. Users upgrading to FreeBSD 7.0 from older releases (in particular, older than 7.0-RC1) will need to download an updated version of freebsd-update(8) that supports upgrading to a new release.

# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz

Downloading and verifying the digital signature for the tarball (signed by the FreeBSD Security Officer’s PGP key) is highly recommended.

# fetch http://people.freebsd.org/~cperciva/freebsd-update-upgrade.tgz.asc

# gpg --verify freebsd-update-upgrade.tgz.asc freebsd-update-upgrade.tgz

The new freebsd-update(8) can then be extracted and run as follows:

# tar -xf freebsd-update-upgrade.tgz

# sh freebsd-update.sh -f freebsd-update.conf -r 8.0-RELEASE upgrade

# sh freebsd-update.sh -f freebsd-update.conf install

The system must be rebooted with the newly installed kernel before continuing.

# shutdown -r now

Next, freebsd-update.sh needs to be run again to 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

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

# shutdown -r now

For more information, see:

http://www.daemonology.net/blog/2007-11-11-freebsd-major-version-upgrade.html

相关文章

发表评论