Press "Enter" to skip to content

FreeBSD直接可以用命令升级,比如将FreeBSD8.1升级成FreeBSD8.2[原创]

升级FreeBSD系统FreeBSD8.1升级成FreeBSD8.2的操作过程

kiccleaf# uname -a
FreeBSD qm.w 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
kiccleaf# freebsd-update -r 8.2-RELEASE upgrade
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching metadata signature for 8.1-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.

The following components of FreeBSD seem to be installed:
kernel/generic world/base

The following components of FreeBSD do not seem to be installed:
src/base src/bin src/cddl src/contrib src/crypto src/etc src/games
src/gnu src/include src/krb5 src/lib src/libexec src/release src/rescue
src/sbin src/secure src/share src/sys src/tools src/ubin src/usbin
world/catpages world/dict world/doc world/games world/info
world/manpages world/proflibs

Does this look reasonable (y/n)? y

Fetching metadata signature for 8.2-RELEASE from update5.FreeBSD.org... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... done.
Fetching files from 8.1-RELEASE for merging... done.
Preparing to download files... done.
Fetching 5591
60....5570....5580....5590 done.
Applying patches... done.
Fetching 47 files... done.
Attempting to automatically merge changes in files... done.
kiccleaf# freebsd-update install
Installing updates...
Kernel updates have been installed.  Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.

记住以下这两步不可少,否则远程登陆不了就要跑机房咯
第一步:先更新一下ssh

kiccleaf# vi /etc/ssh/sshd_config

Port 22
PermitRootLogin no
PubkeyAuthentication yes
AuthorizedKeysFile    .ssh/id_dsa.pub
PasswordAuthentication no
PermitEmptyPasswords no

第二步:把配置ssh随系统启动

kiccleaf# cat /etc/rc.conf

sshd_enable="YES"

kiccleaf# shutdown -r now
kiccleaf# uname -a
FreeBSD qm.w 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Fri Feb 18 02:24:46 UTC 2011     root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注